Skip to content

Commit e127494

Browse files
committed
[test] Improve assert_raises_jsonrpc docstring
1 parent 7696841 commit e127494

File tree

1 file changed

+2
-2
lines changed
  • test/functional/test_framework

1 file changed

+2
-2
lines changed

test/functional/test_framework/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ def assert_raises_jsonrpc(code, message, fun, *args, **kwds):
6262
6363
Calls function `fun` with arguments `args` and `kwds`. Catches a JSONRPCException
6464
and verifies that the error code and message are as expected. Throws AssertionError if
65-
no JSONRPCException was returned or if the error code/message are not as expected.
65+
no JSONRPCException was raised or if the error code/message are not as expected.
6666
6767
Args:
6868
code (int), optional: the error code returned by the RPC call (defined
6969
in src/rpc/protocol.h). Set to None if checking the error code is not required.
7070
message (string), optional: [a substring of] the error string returned by the
71-
RPC call. Set to None if checking the error string is not required
71+
RPC call. Set to None if checking the error string is not required.
7272
fun (function): the function to call. This should be the name of an RPC.
7373
args*: positional arguments for the function.
7474
kwds**: named arguments for the function.

0 commit comments

Comments
 (0)