[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 17d447e993a0ff9b7d44786ceb2a8f9510638bfa) Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
M
Miss Islington (bot) committed
33a488e929bc300c20a6c6bc16ae4c26a0075b4c
Parent: f9f0a78
Committed by GitHub <noreply@github.com>
on 1/27/2026, 10:28:09 AM