From 7b5af3b2d4bf8e5db5352805e1c161a3d985692f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jul 2020 15:33:24 -0400 Subject: [PATCH] Pass a copy of the expected exposed modules --- tests/test_rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_rpc.py b/tests/test_rpc.py index b3fa1df..8ac9b09 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -63,7 +63,7 @@ def test_rpc_errors(arb_addr, to_call, testdir): # module should raise a ModuleNotFoundError at import testdir.makefile('.py', tmp_mod=funcname) - # no need to exposed module to the subactor + # no need to expose module to the subactor subactor_exposed_mods = exposed_mods exposed_mods = [] func_defined = False @@ -95,7 +95,7 @@ def test_rpc_errors(arb_addr, to_call, testdir): tractor.run( main, arbiter_addr=arb_addr, - rpc_module_paths=exposed_mods, + rpc_module_paths=exposed_mods.copy(), ) # handle both parameterized cases