From b4cb7439a157039c77ff2de357dac3dee5790481 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jan 2020 22:46:48 -0500 Subject: [PATCH] Drop useless fork error branch --- tests/conftest.py | 2 +- tractor/_spawn.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9675299..2ca97af 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -52,7 +52,7 @@ def arb_addr(): def pytest_generate_tests(metafunc): - spawn_backend = metafunc.config.getoption("spawn_backend") + spawn_backend = metafunc.config.option.spawn_backend assert spawn_backend in ('mp', 'trio_run_in_process') if 'start_method' in metafunc.fixturenames: diff --git a/tractor/_spawn.py b/tractor/_spawn.py index 25d6368..f94fc62 100644 --- a/tractor/_spawn.py +++ b/tractor/_spawn.py @@ -72,11 +72,6 @@ def try_set_start_method(name: str) -> Optional[mp.context.BaseContext]: raise ValueError( f"Spawn method `{name}` is invalid please choose one of {methods}" ) - - elif name == 'fork': - raise ValueError( - "`fork` is unsupported due to incompatibility with `trio`" - ) elif name == 'forkserver': _forkserver_override.override_stdlib() _ctx = mp.get_context(name)