]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115421: List all test/ subdirs in Makefile, and test them (GH-115813)
authorPetr Viktorin <encukou@gmail.com>
Mon, 11 Mar 2024 11:02:05 +0000 (12:02 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 11:02:05 +0000 (12:02 +0100)
commitd78117981a15a71aed91ad525fd2c17c7fc3ae7f
treea70e33791c9f9c0d44146072b5a509823bd34e88
parent707ce1f0a7886c4e12c5c5de52a8c6c60b3c6c8c
 [3.11] gh-115421: List all test/ subdirs in Makefile, and test them (GH-115813)

This backports:
- GH-115813
- GH-115422

Unlike on the main branch, new directories are added to the end,
so they're a bit easier to patch out if a redistributor needs to do so.

On main & 3.12, there's a special case for `idlelib/idle_test`; on
3.11 TESTSUBDIRS has several more entries that are not in `test/`.
This backport ignores all of them (including idlelib).
(The alternative would be list them, as additions to TEST_HOME_DIR.
But that's probably too invasive; people might split stdlib up in
surprising ways.)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_tools/test_makefile.py [new file with mode: 0644]
Makefile.pre.in