forkserver is not available on windows

This commit is contained in:
Kovid Goyal 2020-08-22 14:05:44 +05:30
parent c7c3d1382c
commit 15e1ad7d7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -341,8 +341,10 @@ class BuildTest(unittest.TestCase):
def test_multiprocessing(): def test_multiprocessing():
from multiprocessing import get_context from multiprocessing import get_context, get_all_start_methods
for stype in ('spawn', 'forkserver'): for stype in get_all_start_methods():
if stype == 'fork':
continue
ctx = get_context(stype) ctx = get_context(stype)
q = ctx.Queue() q = ctx.Queue()
arg = 'hello' arg = 'hello'