Skip to content

Commit aeafaf4

Browse files
sobolevntomasr8
andauthored
gh-126014: Ignore __pycache__-only folders in makefile tests (#126066)
Co-authored-by: Tomas R. <[email protected]>
1 parent dc2552d commit aeafaf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_tools/test_makefile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ def test_makefile_test_folders(self):
5252
if not dirs and not files:
5353
continue
5454
# Skip dirs with hidden-only files:
55-
if files and all(filename.startswith('.') for filename in files):
55+
if files and all(
56+
filename.startswith('.') or filename == '__pycache__'
57+
for filename in files
58+
):
5659
continue
5760

5861
relpath = os.path.relpath(dirpath, support.STDLIB_DIR)

0 commit comments

Comments
 (0)