]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117378: Only run the new multiprocessing SysPath test when appropriate (GH-126635)
authorGregory P. Smith <greg@krypto.org>
Sun, 10 Nov 2024 21:17:05 +0000 (13:17 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 21:17:05 +0000 (13:17 -0800)
commitca878b6e45f9c7934842f7bb94274e671b155e09
tree148a57d39f1e1d3b80b882ff8b762c7c526fd5a6
parent0f6bb28ff3ba152faf7523ea9aaf0094cc39bdda
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.
Lib/test/_test_multiprocessing.py