Skip to content

Commit 17fd6c3

Browse files
committed
pythongh-117711: Fix test_tools.test_makefile when wheeldata dir is empty
1 parent 02f1385 commit 17fd6c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_tools/test_makefile.py

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

70+
# gh-117711: Fedora removes Lib/test/wheeldata/*.whl which makes the
71+
# directory empty.
72+
if not os.listdir(os.path.join(support.TEST_HOME_DIR, 'wheeldata')):
73+
test_dirs.remove('test/wheeldata')
74+
7075
# Check that there are no extra entries:
7176
unique_test_dirs = set(test_dirs)
7277
self.assertSetEqual(unique_test_dirs, set(used))

0 commit comments

Comments
 (0)