Always force mp backend on Windows

try_trip^2
Tyler Goodlet 2020-01-26 22:09:06 -05:00
parent 87948bde3d
commit e18fec9b17
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ def pytest_addoption(parser):
def pytest_configure(config):
backend = config.option.spawn_backend
if plaform.system() == "Windows":
backend = 'mp'
if backend == 'mp':
tractor._spawn.try_set_start_method('spawn')
elif backend == 'trio_run_in_process':