diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-01 00:57:12 +1300 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-01 00:26:08 +1300 |
commit | fa4c599145843b0d3cf998d661281a39bc438d95 (patch) | |
tree | 35172a442e97a4d89e7066fbe9b6f01bbd927137 /test | |
parent | 623745ca74cf3f54b474dac106f5802b7929503f (diff) |
rpc: Quote user supplied descriptor in error msg
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_getdescriptorinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/rpc_getdescriptorinfo.py b/test/functional/rpc_getdescriptorinfo.py index 563f54c5e7..5e6fd66aab 100755 --- a/test/functional/rpc_getdescriptorinfo.py +++ b/test/functional/rpc_getdescriptorinfo.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright (c) 2019-2020 The Bitcoin Core developers +# Copyright (c) 2019-2022 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test getdescriptorinfo RPC. @@ -30,7 +30,7 @@ class DescriptorTest(BitcoinTestFramework): def run_test(self): assert_raises_rpc_error(-1, 'getdescriptorinfo', self.nodes[0].getdescriptorinfo) assert_raises_rpc_error(-3, 'Expected type string', self.nodes[0].getdescriptorinfo, 1) - assert_raises_rpc_error(-5, 'is not a valid descriptor function', self.nodes[0].getdescriptorinfo, '') + assert_raises_rpc_error(-5, "'' is not a valid descriptor function", self.nodes[0].getdescriptorinfo, "") # P2PK output with the specified public key. self.test_desc('pk(0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)', isrange=False, issolvable=True, hasprivatekeys=False) |