Skip to content

Commit b38ac70

Browse files
committed
pythongh-120418: Don't assume wheeldata is deleted if WHEEL_PKG_DIR is set
Remove wheeldata from both sides of the `assertEqual`, so that we're *actually* ignoring it from the test set. This test is only making assertions about the source tree, no code is being executed that would do anything different based on the value of `WHEEL_PKG_DIR`.
1 parent fabcf6b commit b38ac70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_tools/test_makefile.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ def test_makefile_test_folders(self):
6767
)
6868
used.append(relpath)
6969

70+
unique_used = set(used)
71+
7072
# Don't check the wheel dir when Python is built --with-wheel-pkg-dir
7173
if sysconfig.get_config_var('WHEEL_PKG_DIR'):
7274
test_dirs.remove('test/wheeldata')
75+
unique_used.discard('test/wheeldata')
7376

7477
# Check that there are no extra entries:
7578
unique_test_dirs = set(test_dirs)
76-
self.assertSetEqual(unique_test_dirs, set(used))
79+
self.assertSetEqual(unique_test_dirs, unique_used)
7780
self.assertEqual(len(test_dirs), len(unique_test_dirs))

0 commit comments

Comments
 (0)