cpython/Lib/test/test_tools
Miss Islington (bot) d11c067246
[3.14] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144269)
gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466)

The code in test_makefile was attempting to ignore any
non-interesting files, but missed some corners:

1. There is never a *file* called `__pycache__`.
2. A directory containing only a `__pycache__` subdirectory should be
   ignored.
3. A directory containing only hidden files should be ignored.

Simplify this all into a couple of filters that let us check for empty
lists.
(cherry picked from commit 17d447e993)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
2026-01-27 10:30:59 +00:00
..
i18n_data gh-130453: pygettext: Allow specifying multiple keywords with the same function name (GH-131380) 2025-04-10 11:06:40 +00:00
msgfmt_data gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) 2025-04-05 22:38:39 +03:00
__init__.py test_peg_generator and test_freeze require cpu (#108386) 2023-08-24 00:52:48 +02:00
__main__.py
test_freeze.py gh-113384: Skip test_freeze for framework builds on macOS (#113390) 2023-12-22 11:35:54 +01:00
test_i18n.py gh-130197: Test pygettext --output option (GH-133041) 2025-05-01 19:30:24 +03:00
test_makefile.py [3.14] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144269) 2026-01-27 10:30:59 +00:00
test_makeunicodedata.py gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764) 2023-11-06 15:32:35 +01:00
test_msgfmt.py gh-130197: Improve test coverage of msgfmt.py (GH-133048) 2025-05-01 13:32:11 +00:00
test_reindent.py gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) 2023-09-12 09:37:42 +03:00
test_sundry.py