cpython/Lib/test/test_tools
Miss Islington (bot) 33a488e929
[3.13] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144268)
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:28:09 +00:00
..
i18n_data [3.13] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132032) 2025-04-02 20:30:26 +00:00
msgfmt_data [3.13] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132217) 2025-04-07 14:52:02 +00: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 [3.13] gh-130197: Test pygettext --output option (GH-133041) (GH-133266) 2025-05-09 07:56:58 +00:00
test_makefile.py [3.13] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144268) 2026-01-27 10:28:09 +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 [3.13] gh-130197: Improve test coverage of msgfmt.py (GH-133048) (GH-133255) 2025-05-02 07:28:28 +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 GH-107458: fix test_tools refleak (#107577) 2023-08-03 06:36:02 +00:00