From: sobolevn Date: Tue, 29 Oct 2024 07:43:48 +0000 (+0300) Subject: gh-126014: Ignore `__pycache__`-only folders in makefile tests (#126066) X-Git-Tag: v3.14.0a2~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeafaf4cda5bfce44bb054b4c530696901646abe;p=thirdparty%2FPython%2Fcpython.git gh-126014: Ignore `__pycache__`-only folders in makefile tests (#126066) Co-authored-by: Tomas R. --- diff --git a/Lib/test/test_tools/test_makefile.py b/Lib/test/test_tools/test_makefile.py index df95e6d00685..4c7588d4d93f 100644 --- a/Lib/test/test_tools/test_makefile.py +++ b/Lib/test/test_tools/test_makefile.py @@ -52,7 +52,10 @@ class TestMakefile(unittest.TestCase): 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)