]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:40:33 +0000 (22:40 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 21:40:33 +0000 (21:40 +0000)
commit79ad4bddfc61f4773c4d98aae2812a6875d11283
tree57afc9e85b1b4800e45b47143578dd7097dc6a9b
parent9473ae9b5105f1aeba158f2abcc0eff18a48a5c5
[3.13] gh-117378: Only run the new multiprocessing SysPath test when appropriate (GH-126635) (GH-126652)

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