aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_importmulti.py
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2019-08-25 21:49:49 +0000
committerpracticalswift <[email protected]>2019-08-26 10:45:25 +0000
commit25dd86715039586d92176eee16e9c6644d2547f0 (patch)
tree933ff753d30eee49f9364df1b0daea9f8bff4a2e /test/functional/wallet_importmulti.py
parentMerge #16611: build: Remove src/obj directory from repository (diff)
downloaddiscoin-25dd86715039586d92176eee16e9c6644d2547f0.tar.xz
discoin-25dd86715039586d92176eee16e9c6644d2547f0.zip
Avoid using mutable default parameter values
Diffstat (limited to 'test/functional/wallet_importmulti.py')
-rwxr-xr-xtest/functional/wallet_importmulti.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py
index e4a4ab1f3..23748e5dd 100755
--- a/test/functional/wallet_importmulti.py
+++ b/test/functional/wallet_importmulti.py
@@ -44,8 +44,10 @@ class ImportMultiTest(BitcoinTestFramework):
def setup_network(self):
self.setup_nodes()
- def test_importmulti(self, req, success, error_code=None, error_message=None, warnings=[]):
+ def test_importmulti(self, req, success, error_code=None, error_message=None, warnings=None):
"""Run importmulti and assert success"""
+ if warnings is None:
+ warnings = []
result = self.nodes[1].importmulti([req])
observed_warnings = []
if 'warnings' in result[0]: