Skip to content

Commit

Permalink
pythongh-117166: Ignore empty and temporary dirs in test_makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Mar 24, 2024
1 parent d610d82 commit 39d080e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/test/test_tools/test_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ def test_makefile_test_folders(self):
used = [idle_test]
for dirpath, _, _ in os.walk(support.TEST_HOME_DIR):
dirname = os.path.basename(dirpath)
if dirname == '__pycache__':
if (
dirname == '__pycache__'
or dirname.startswith('.')
or not os.listdir(dirpath)
):
continue

relpath = os.path.relpath(dirpath, support.STDLIB_DIR)
Expand Down

0 comments on commit 39d080e

Please sign in to comment.