From 9e64161538280bbc139e35f67a9bd37dd9f340c2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 24 Feb 2021 18:20:59 -0500 Subject: [PATCH] Drop run and rpc_module_paths from rpc tests --- tests/test_rpc.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_rpc.py b/tests/test_rpc.py index 2a2b406..546c7c4 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -74,11 +74,15 @@ def test_rpc_errors(arb_addr, to_call, testdir): remote_err = inside_err async def main(): - actor = tractor.current_actor() - assert actor.is_arbiter # spawn a subactor which calls us back - async with tractor.open_nursery() as n: + async with tractor.open_nursery( + arbiter_addr=arb_addr, + enable_modules=exposed_mods.copy(), + ) as n: + + actor = tractor.current_actor() + assert actor.is_arbiter await n.run_in_actor( sleep_back_actor, actor_name=subactor_requests_to, @@ -94,11 +98,7 @@ def test_rpc_errors(arb_addr, to_call, testdir): ) def run(): - tractor.run( - main, - arbiter_addr=arb_addr, - rpc_module_paths=exposed_mods.copy(), - ) + trio.run(main) # handle both parameterized cases if exposed_mods and func_defined: