From 97df92771485e6ed50a435173c2a732d65d11e3a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 30 Oct 2019 00:31:28 -0400 Subject: [PATCH] Run first example test under both start methods --- tests/conftest.py | 2 ++ tests/test_discovery.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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"). """