Skip to content

Commit a3fa4d6

Browse files
committed
QA: Fix bug in -usecli logic that converts booleans to non-lowercase strings
1 parent 4704e5f commit a3fa4d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/test_framework/test_node.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ def batch(self, requests):
351351

352352
def send_cli(self, command=None, *args, **kwargs):
353353
"""Run bitcoin-cli command. Deserializes returned string as python object."""
354-
355-
pos_args = [str(arg) for arg in args]
354+
pos_args = [str(arg).lower() if type(arg) is bool else str(arg) for arg in args]
356355
named_args = [str(key) + "=" + str(value) for (key, value) in kwargs.items()]
357356
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
358357
p_args = [self.binary, "-datadir=" + self.datadir] + self.options

0 commit comments

Comments
 (0)