mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
forkserver is not available on windows
This commit is contained in:
parent
c7c3d1382c
commit
15e1ad7d7e
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user