mirror of https://github.com/python/cpython
[3.13] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066) (#126109)
gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066)
(cherry picked from commit aeafaf4cda
)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
parent
672b915ff9
commit
36f8184d29
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue