mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-108388: Split test_multiprocessing_spawn (#108396)
Split test_multiprocessing_fork, test_multiprocessing_forkserver and test_multiprocessing_spawn into test packages. Each package is made of 4 sub-tests: processes, threads, manager and misc. It allows running more tests in parallel and so reduce the total test duration.
This commit is contained in:
parent
174e9da083
commit
aa9a359ca2
19 changed files with 117 additions and 27 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import unittest
|
||||
import test._test_multiprocessing
|
||||
|
||||
import sys
|
||||
from test import support
|
||||
|
||||
if support.PGO:
|
||||
raise unittest.SkipTest("test is not helpful for PGO")
|
||||
|
||||
if sys.platform == "win32":
|
||||
raise unittest.SkipTest("fork is not available on Windows")
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
raise unittest.SkipTest("test may crash on macOS (bpo-33725)")
|
||||
|
||||
test._test_multiprocessing.install_tests_in_module_dict(globals(), 'fork')
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue