Skip to content

Commit

Permalink
Only check for 'test/wheeldata' when it's actually used
Browse files Browse the repository at this point in the history
It's possible to build Python with option `--with-wheel-pkg-dir`
pointing to a custom wheel directory. Don't include the directory in the test
set if the wheels are used from a different location.
  • Loading branch information
befeleme committed Apr 10, 2024
1 parent ef41182 commit 32a2c74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_tools/test_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def test_makefile_test_folders(self):
)
used.append(relpath)

if sysconfig.get_config_var('WHEEL_PKG_DIR'):
test_dirs.remove('test/wheeldata')

# Check that there are no extra entries:
unique_test_dirs = set(test_dirs)
self.assertSetEqual(unique_test_dirs, set(used))
Expand Down

0 comments on commit 32a2c74

Please sign in to comment.