Skip to content

Commit d496387

Browse files
befelemehroncok
andauthored
gh-117711: Only check for 'test/wheeldata' when it's actually used (#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 02f1385 commit d496387

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_tools/test_makefile.py

+4
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)