Force `mp` backend if option is blank?

try_trip^2
Tyler Goodlet 2020-01-26 23:16:43 -05:00
parent b4cb7439a1
commit 5fd38d4618
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ def arb_addr():
def pytest_generate_tests(metafunc): def pytest_generate_tests(metafunc):
spawn_backend = metafunc.config.option.spawn_backend spawn_backend = metafunc.config.option.spawn_backend
if not spawn_backend:
# XXX some weird windows bug with `pytest`?
spawn_backend = 'mp'
assert spawn_backend in ('mp', 'trio_run_in_process') assert spawn_backend in ('mp', 'trio_run_in_process')
if 'start_method' in metafunc.fixturenames: if 'start_method' in metafunc.fixturenames: