mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-126014: Ignore __pycache__
-only folders in makefile tests (#126066)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
parent
dc2552d429
commit
aeafaf4cda
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue