Skip to content

[3.12] gh-126014: Ignore __pycache__-only folders in makefile tests (GH-126066) #126110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Lib/test/test_tools/test_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading