Drop useless fork error branch

try_trip^2
Tyler Goodlet 2020-01-26 22:46:48 -05:00
parent e57811a602
commit b4cb7439a1
2 changed files with 1 additions and 6 deletions

View File

@ -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:

View File

@ -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)