mirror of
https://github.com/python/cpython.git
synced 2026-02-06 09:50:43 +00:00
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
|
||
|---|---|---|
| .. | ||
| i18n_data | ||
| msgfmt_data | ||
| __init__.py | ||
| __main__.py | ||
| test_freeze.py | ||
| test_i18n.py | ||
| test_makefile.py | ||
| test_makeunicodedata.py | ||
| test_msgfmt.py | ||
| test_reindent.py | ||
| test_sundry.py | ||