Skip to content

Commit 5b681d6

Browse files
miss-islingtonbefelemehroncok
authored
[3.12] pythongh-117711: Only check for 'test/wheeldata' when it's actually used (pythonGH-117712) (python#117749)
pythongh-117711: Only check for 'test/wheeldata' when it's actually used (pythonGH-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. (cherry picked from commit d496387) Co-authored-by: Karolina Surma <[email protected]> Co-authored-by: Miro Hrončok <[email protected]>
1 parent 2a50857 commit 5b681d6

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
@@ -66,6 +66,10 @@ def test_makefile_test_folders(self):
6666
)
6767
used.append(relpath)
6868

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

0 commit comments

Comments
 (0)