8000 gh-117711: Only check for 'test/wheeldata' when it's actually used (#… · diegorusso/cpython@2a9aaac · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a9aaac

Browse files
befelemehroncok
authored andcommitted
pythongh-117711: Only check for 'test/wheeldata' when it's actually used (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>
1 parent f7547c6 commit 2a9aaac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_tools/test_makefile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def test_makefile_test_folders(self):
6767
)
6868
used.append(relpath)
6969

70+
# Don't check the wheel dir when Python is built --with-wheel-pkg-dir
71+
if sysconfig.get_config_var('WHEEL_PKG_DIR'):
72+
test_dirs.remove('test/wheeldata')
73+
7074
# Check that there are no extra entries:
7175
unique_test_dirs = set(test_dirs)
7276
self.assertSetEqual(unique_test_dirs, set(used))

0 commit comments

Comments
 (0)
0