You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ignore directories containing only __pycache__ in test_makefile_test_folders #126014
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
There's a variant of this bug where a directory containing only a single __pycache__ is not included. I've run into this while bisecting across large swathes of history, which leave empty directories around.
Activity
pythongh-126014: Ignore `__pycache__`-only folders in makefile tests
gh-126014: Ignore `__pycache__`-only folders in makefile tests (#126066)
pythongh-126014: Ignore `__pycache__`-only folders in makefile tests (p…
pythongh-126014: Ignore `__pycache__`-only folders in makefile tests (p…
[3.12] gh-126014: Ignore `__pycache__`-only folders in makefile tests (…
[3.13] gh-126014: Ignore `__pycache__`-only folders in makefile tests (…
pythongh-126014: Ignore `__pycache__`-only folders in makefile tests (p…
picnixz commentedon Dec 15, 2024
Closing since completed and backported.
pythongh-126014: Ignore `__pycache__`-only folders in makefile tests (p…
stefanor commentedon Oct 22, 2025
There's a variant of this bug where a directory containing only a single
__pycache__is not included. I've run into this while bisecting across large swathes of history, which leave empty directories around.pythongh-126014: test_makefile_test_folders: Ignore basically-empty d…
gh-126014: test_makefile_test_folders: Ignore basically-empty directo…
pythongh-126014: test_makefile_test_folders: Ignore basically-empty d…
pythongh-126014: test_makefile_test_folders: Ignore basically-empty d…
[3.13] gh-126014: test_makefile_test_folders: Ignore basically-empty …
[3.14] gh-126014: test_makefile_test_folders: Ignore basically-empty …
pythongh-126014: test_makefile_test_folders: Ignore basically-empty d…