forked from goodboy/tractor
Pass a copy of the expected exposed modules
parent
1d1c881fd7
commit
e7ee0fec34
|
@ -63,7 +63,7 @@ def test_rpc_errors(arb_addr, to_call, testdir):
|
||||||
# module should raise a ModuleNotFoundError at import
|
# module should raise a ModuleNotFoundError at import
|
||||||
testdir.makefile('.py', tmp_mod=funcname)
|
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
|
subactor_exposed_mods = exposed_mods
|
||||||
exposed_mods = []
|
exposed_mods = []
|
||||||
func_defined = False
|
func_defined = False
|
||||||
|
@ -95,7 +95,7 @@ def test_rpc_errors(arb_addr, to_call, testdir):
|
||||||
tractor.run(
|
tractor.run(
|
||||||
main,
|
main,
|
||||||
arbiter_addr=arb_addr,
|
arbiter_addr=arb_addr,
|
||||||
rpc_module_paths=exposed_mods,
|
rpc_module_paths=exposed_mods.copy(),
|
||||||
)
|
)
|
||||||
|
|
||||||
# handle both parameterized cases
|
# handle both parameterized cases
|
||||||
|
|
Loading…
Reference in New Issue