Skip to content

Conversation

stefanor
Copy link
Contributor

@stefanor stefanor commented Oct 22, 2025

The code in test_makefile was attempting to ignore any 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.

Bisecting across the removal of Lib/test/support/interpreters/ is likely to trigger this bug.

…irectories

The code in test_makefile was attempting to ignore any 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant