mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
Avoid using mutable default parameter values
This commit is contained in:
@ -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]:
|
||||
|
Reference in New Issue
Block a user