mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-27 22:42:34 +01:00
qa: Quote wallet name for rpc path
This commit is contained in:
@@ -15,6 +15,7 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
from .authproxy import JSONRPCException
|
from .authproxy import JSONRPCException
|
||||||
from .util import (
|
from .util import (
|
||||||
@@ -184,7 +185,7 @@ class TestNode():
|
|||||||
return self.cli("-rpcwallet={}".format(wallet_name))
|
return self.cli("-rpcwallet={}".format(wallet_name))
|
||||||
else:
|
else:
|
||||||
assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected")
|
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
|
return self.rpc / wallet_path
|
||||||
|
|
||||||
def stop_node(self, expected_stderr=''):
|
def stop_node(self, expected_stderr=''):
|
||||||
|
|||||||
Reference in New Issue
Block a user