Run first example test under both start methods
parent
6d9ac53bd5
commit
97df927714
|
@ -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')
|
||||
|
|
|
@ -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").
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue