From 5fd38d4618a04c8ba21de2e30f9ff616ef0e3541 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jan 2020 23:16:43 -0500 Subject: [PATCH] Force `mp` backend if option is blank? --- tests/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 2ca97af..128ff3e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -53,6 +53,9 @@ def arb_addr(): def pytest_generate_tests(metafunc): 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') if 'start_method' in metafunc.fixturenames: