From 3c7ec72f8e04f929f0a16be3434755e52fb9dbde Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jul 2020 23:37:44 -0400 Subject: [PATCH] Fix SIGINT test names --- tests/test_cancellation.py | 4 ++-- tractor/_entry.py | 1 - tractor/_spawn.py | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_cancellation.py b/tests/test_cancellation.py index 99c7b29..6af078c 100644 --- a/tests/test_cancellation.py +++ b/tests/test_cancellation.py @@ -359,7 +359,7 @@ async def test_nested_multierrors(loglevel, start_method): @no_windows -def test_open_in_proc_cancel_via_SIGINT(loglevel, start_method): +def test_cancel_via_SIGINT(loglevel, start_method): """Ensure that a control-C (SIGINT) signal cancels both the parent and child processes in trionic fashion """ @@ -377,7 +377,7 @@ def test_open_in_proc_cancel_via_SIGINT(loglevel, start_method): @no_windows -def test_open_in_proc_cancel_via_SIGINT_other_task( +def test_cancel_via_SIGINT_other_task( loglevel, start_method ): diff --git a/tractor/_entry.py b/tractor/_entry.py index 82f814c..1c26065 100644 --- a/tractor/_entry.py +++ b/tractor/_entry.py @@ -20,7 +20,6 @@ def _mp_main( forkserver_info: Tuple[Any, Any, Any, Any, Any], start_method: str, parent_addr: Tuple[str, int] = None, - infect_asyncio: bool = False, ) -> None: """The routine called *after fork* which invokes a fresh ``trio.run`` """ diff --git a/tractor/_spawn.py b/tractor/_spawn.py index 5642083..8078c03 100644 --- a/tractor/_spawn.py +++ b/tractor/_spawn.py @@ -189,7 +189,6 @@ async def new_proc( bind_addr: Tuple[str, int], parent_addr: Tuple[str, int], use_trio_run_in_process: bool = False, - infect_asyncio: bool = False, task_status: TaskStatus[Portal] = trio.TASK_STATUS_IGNORED ) -> None: """Create a new ``multiprocessing.Process`` using the @@ -275,7 +274,6 @@ async def new_proc( fs_info, start_method, parent_addr, - infect_asyncio, ), # daemon=True, name=name,