diff --git a/tests/conftest.py b/tests/conftest.py index 2da68f7..fd8427f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -35,5 +35,7 @@ def pytest_generate_tests(metafunc): from multiprocessing import get_all_start_methods methods = get_all_start_methods() if 'fork' in methods: # fork not available on windows, so check before removing + # XXX: the fork method is in general incompatible with + # trio's global scheduler state methods.remove('fork') metafunc.parametrize("start_method", methods, scope='module') diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 2db8c68..f458494 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -60,7 +60,7 @@ async def say_hello_use_wait(other_actor): @tractor_test @pytest.mark.parametrize('func', [say_hello, say_hello_use_wait]) -async def test_trynamic_trio(func): +async def test_trynamic_trio(func, start_method): """Main tractor entry point, the "master" process (for now acts as the "director"). """