]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-117378: Only run the new multiprocessing SysPath test when appropriate...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Nov 2024 21:33:26 +0000 (22:33 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 21:33:26 +0000 (21:33 +0000)
commitabb8265f0206ab209bad62581eb48d8a764038a1
tree0b9d4c04fc09e96c10bef59b6681a742468d64af
parentc47c6416c3614f5a58f5d4fd86714ed4b6bd60c4
[3.12] gh-117378: Only run the new multiprocessing SysPath test when appropriate (GH-126635) (GH-126653)

gh-117378: Only run the new multiprocessing SysPath test when appropriate (GH-126635)

The first version had it running two forkserver and one spawn tests underneath each of the _fork, _forkserver, and _spawn test suites that build off the generic one.

This adds to the existing complexity of the multiprocessing test suite by offering BaseTestCase classes another attribute to control which suites they are invoked under. Practicality vs purity here. :/

Net result: we don't over-run the new test and their internal logic is simplified.
(cherry picked from commit ca878b6e45f9c7934842f7bb94274e671b155e09)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/_test_multiprocessing.py