https://github.com/python/cpython/commit/385fa83a4348eaa146a84ad97056d2b10534b033
commit: 385fa83a4348eaa146a84ad97056d2b10534b033
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-10-29T08:04:50Z
summary:

[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 aeafaf4cda5bfce44bb054b4c530696901646abe)

Co-authored-by: sobolevn <[email protected]>
Co-authored-by: Tomas R. <[email protected]>

files:
M Lib/test/test_tools/test_makefile.py

diff --git a/Lib/test/test_tools/test_makefile.py 
b/Lib/test/test_tools/test_makefile.py
index e253bd0049ffa6..f1f0cd87ba7496 100644
--- a/Lib/test/test_tools/test_makefile.py
+++ b/Lib/test/test_tools/test_makefile.py
@@ -51,7 +51,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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to