mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: pep8 wallet_multiwallet.py
This commit is contained in:
parent
a0489f3472
commit
fa8e15f7b7
1 changed files with 4 additions and 2 deletions
|
@ -23,6 +23,8 @@ from test_framework.util import (
|
|||
)
|
||||
|
||||
got_loading_error = False
|
||||
|
||||
|
||||
def test_load_unload(node, name):
|
||||
global got_loading_error
|
||||
for _ in range(10):
|
||||
|
@ -68,7 +70,7 @@ class MultiWalletTest(BitcoinTestFramework):
|
|||
return wallet_dir(name, "wallet.dat")
|
||||
return wallet_dir(name)
|
||||
|
||||
assert_equal(self.nodes[0].listwalletdir(), { 'wallets': [{ 'name': self.default_wallet_name }] })
|
||||
assert_equal(self.nodes[0].listwalletdir(), {'wallets': [{'name': self.default_wallet_name}]})
|
||||
|
||||
# check wallet.dat is created
|
||||
self.stop_nodes()
|
||||
|
@ -278,7 +280,7 @@ class MultiWalletTest(BitcoinTestFramework):
|
|||
threads = []
|
||||
for _ in range(3):
|
||||
n = node.cli if self.options.usecli else get_rpc_proxy(node.url, 1, timeout=600, coveragedir=node.coverage_dir)
|
||||
t = Thread(target=test_load_unload, args=(n, wallet_names[2], ))
|
||||
t = Thread(target=test_load_unload, args=(n, wallet_names[2]))
|
||||
t.start()
|
||||
threads.append(t)
|
||||
for t in threads:
|
||||
|
|
Loading…
Add table
Reference in a new issue