Skip to content

Commit 385fa83

Browse files
miss-islingtonsobolevntomasr8
authored
[3.12] gh-126014: Ignore __pycache__-only folders in makefile tests (GH-126066) (#126110)
gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066) (cherry picked from commit aeafaf4) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Tomas R. <[email protected]>
1 parent 8da17bb commit 385fa83

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
@@ -51,7 +51,10 @@ def test_makefile_test_folders(self):
5151
if not dirs and not files:
5252
continue
5353
# Skip dirs with hidden-only files:
54-
if files and all(filename.startswith('.') for filename in files):
54+
if files and all(
55+
filename.startswith('.') or filename == '__pycache__'
56+
for filename in files
57+
):
5558
continue
5659

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

0 commit comments

Comments
 (0)