mirror of
https://github.com/python/cpython.git
synced 2026-01-04 22:42:14 +00:00
[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 aeafaf4cda)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
parent
8da17bb4f7
commit
385fa83a43
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue