Skip to content

Commit ce6ec8f

Browse files
committed
Fix test issue
python/cpython#100690
1 parent 9d796dc commit ce6ec8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/core/test_rpc.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_remove_multi_method(rpc, existing_multi_func):
7979
def test_rpcmixin_register(rpcmixin, cog):
8080
rpcmixin.register_rpc_handler(cog.cofunc)
8181

82-
assert rpcmixin.rpc.add_method.called_once_with(cog.cofunc)
82+
assert rpcmixin.rpc.add_method.assert_called_once_with(cog.cofunc)
8383

8484
name = get_name(cog.cofunc)
8585
cogname = name.split("__")[0]
@@ -91,7 +91,7 @@ def test_rpcmixin_unregister(rpcmixin, cog):
9191
rpcmixin.register_rpc_handler(cog.cofunc)
9292
rpcmixin.unregister_rpc_handler(cog.cofunc)
9393

94-
assert rpcmixin.rpc.remove_method.called_once_with(cog.cofunc)
94+
assert rpcmixin.rpc.remove_method.assert_called_once_with(cog.cofunc)
9595

9696
name = get_name(cog.cofunc)
9797
cogname = name.split("__")[0]

0 commit comments

Comments
 (0)