diff --git a/Lib/test/test_tools/test_makefile.py b/Lib/test/test_tools/test_makefile.py index 29f5c28e33bb2b..3d44a327200fa2 100644 --- a/Lib/test/test_tools/test_makefile.py +++ b/Lib/test/test_tools/test_makefile.py @@ -67,6 +67,11 @@ def test_makefile_test_folders(self): ) used.append(relpath) + # gh-117711: Fedora removes Lib/test/wheeldata/*.whl which makes the + # directory empty. + if not os.listdir(os.path.join(support.TEST_HOME_DIR, 'wheeldata')): + test_dirs.remove('test/wheeldata') + # Check that there are no extra entries: unique_test_dirs = set(test_dirs) self.assertSetEqual(unique_test_dirs, set(used))