aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2018-06-14 21:38:01 +0200
committerJonas Schnelli <[email protected]>2018-07-12 20:32:07 +0100
commita3fa4d6a6acf19d640a1d5879a00aa1f059e2380 (patch)
treeaede42773da07536d3cc9f9b2a14384de3689b3d /test/functional/test_framework
parent[QA] add createwallet disableprivatekey test (diff)
downloaddiscoin-a3fa4d6a6acf19d640a1d5879a00aa1f059e2380.tar.xz
discoin-a3fa4d6a6acf19d640a1d5879a00aa1f059e2380.zip
QA: Fix bug in -usecli logic that converts booleans to non-lowercase strings
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-xtest/functional/test_framework/test_node.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index 287dc0e53..50942aec4 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -351,8 +351,7 @@ class TestNodeCLI():
def send_cli(self, command=None, *args, **kwargs):
"""Run bitcoin-cli command. Deserializes returned string as python object."""
-
- pos_args = [str(arg) for arg in args]
+ pos_args = [str(arg).lower() if type(arg) is bool else str(arg) for arg in args]
named_args = [str(key) + "=" + str(value) for (key, value) in kwargs.items()]
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
p_args = [self.binary, "-datadir=" + self.datadir] + self.options