Skip to content

Ignore directories containing only __pycache__ in test_makefile_test_folders #126014

@tomasr8

Description

@tomasr8

Feature or enhancement

Proposal:

While working on some tests, sometimes when switching branches I have a leftover __pycache__ directory in an otherwise empty test folder. This can happen for example when converting a test file into its own directory.

test_makefile_test_folders already ignores empty folders and __pycache__ folders separately. I think it'd be nice if it also ignored folders which only contain __pycache__.

cc @sobolevn since you added this test originally :)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions