Skip to content

Commit

Permalink
pythongh-117711: Only check for 'test/wheeldata' when it's actually u…
Browse files Browse the repository at this point in the history
…sed (python#117712)

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.

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
  • Loading branch information
2 people authored and diegorusso committed Apr 17, 2024
1 parent f7547c6 commit 2a9aaac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_tools/test_makefile.py
Expand Up @@ -67,6 +67,10 @@ def test_makefile_test_folders(self):
)
used.append(relpath)

# Don't check the wheel dir when Python is built --with-wheel-pkg-dir
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 2a9aaac

Please sign in to comment.