mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-39244: multiprocessing return default start method first on macOS (GH-18625)
(cherry picked from commit db098bc1f0
)
Co-authored-by: idomic <michael.ido@gmail.com>
This commit is contained in:
parent
500cd89ecc
commit
1c88bf8541
3 changed files with 9 additions and 4 deletions
|
@ -5039,7 +5039,9 @@ class TestStartMethod(unittest.TestCase):
|
|||
self.assertEqual(methods, ['spawn'])
|
||||
else:
|
||||
self.assertTrue(methods == ['fork', 'spawn'] or
|
||||
methods == ['fork', 'spawn', 'forkserver'])
|
||||
methods == ['spawn', 'fork'] or
|
||||
methods == ['fork', 'spawn', 'forkserver'] or
|
||||
methods == ['spawn', 'fork', 'forkserver'])
|
||||
|
||||
def test_preload_resources(self):
|
||||
if multiprocessing.get_start_method() != 'forkserver':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue