Skip to content

Commit

Permalink
gh-126014: Ignore __pycache__-only folders in makefile tests (#126066)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
  • Loading branch information
sobolevn and tomasr8 authored Oct 29, 2024
1 parent dc2552d commit aeafaf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_tools/test_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def test_makefile_test_folders(self):
if not dirs and not files:
continue
# Skip dirs with hidden-only files:
if files and all(filename.startswith('.') for filename in files):
if files and all(
filename.startswith('.') or filename == '__pycache__'
for filename in files
):
continue

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

0 comments on commit aeafaf4

Please sign in to comment.