diff options
| author | MarcoFalke <[email protected]> | 2018-08-02 08:27:37 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-08-02 08:25:19 -0400 |
| commit | fa67505e1ea007bdc081bc7425fb83d5455d8308 (patch) | |
| tree | b3e3aa04c437d0d70c1f5de198487431dd9c777b /test/functional/test_framework | |
| parent | Merge #13805: [wallet] Correctly limit output group size (diff) | |
| download | discoin-fa67505e1ea007bdc081bc7425fb83d5455d8308.tar.xz discoin-fa67505e1ea007bdc081bc7425fb83d5455d8308.zip | |
qa: Quote wallet name for rpc path
Diffstat (limited to 'test/functional/test_framework')
| -rwxr-xr-x | test/functional/test_framework/test_node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 50942aec4..62fe13a59 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -15,6 +15,7 @@ import re import subprocess import tempfile import time +import urllib.parse from .authproxy import JSONRPCException from .util import ( @@ -184,7 +185,7 @@ class TestNode(): return self.cli("-rpcwallet={}".format(wallet_name)) else: assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected") - wallet_path = "wallet/%s" % wallet_name + wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name)) return self.rpc / wallet_path def stop_node(self, expected_stderr=''): |