[Pkg-bitcoin-commits] [bitcoin] 25/126: [test] Improve assert_raises_jsonrpc docstring
Jonas Smedegaard
dr at jones.dk
Mon Nov 13 20:00:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.15.1_dfsg-1
in repository bitcoin.
commit 812c87004311732da2fc8840a483be80c7a443ca
Author: João Barbosa <joao.paulo.barbosa at gmail.com>
Date: Wed Sep 6 16:52:25 2017 +0100
[test] Improve assert_raises_jsonrpc docstring
Github-Pull: #11125
Rebased-From: e1274947d4574bb83a020d0e178f0e5db7fc6282
---
test/functional/test_framework/util.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
index a14cda0..a5bc495 100644
--- a/test/functional/test_framework/util.py
+++ b/test/functional/test_framework/util.py
@@ -62,13 +62,13 @@ def assert_raises_jsonrpc(code, message, fun, *args, **kwds):
Calls function `fun` with arguments `args` and `kwds`. Catches a JSONRPCException
and verifies that the error code and message are as expected. Throws AssertionError if
- no JSONRPCException was returned or if the error code/message are not as expected.
+ no JSONRPCException was raised or if the error code/message are not as expected.
Args:
code (int), optional: the error code returned by the RPC call (defined
in src/rpc/protocol.h). Set to None if checking the error code is not required.
message (string), optional: [a substring of] the error string returned by the
- RPC call. Set to None if checking the error string is not required
+ RPC call. Set to None if checking the error string is not required.
fun (function): the function to call. This should be the name of an RPC.
args*: positional arguments for the function.
kwds**: named arguments for the function.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/bitcoin.git
More information about the Pkg-bitcoin-commits
mailing list