Skip to content

Commit 410fd74

Browse files
committed
Merge pull request #6465
56b28fc Don't share objects between TestInstances (Casey Rodarmor)
2 parents d2464df + 56b28fc commit 410fd74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qa/rpc-tests/test_framework/comptool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def send_mempool(self):
122122
# or false, then only the last tx is tested against outcome.)
123123

124124
class TestInstance(object):
125-
def __init__(self, objects=[], sync_every_block=True, sync_every_tx=False):
126-
self.blocks_and_transactions = objects
125+
def __init__(self, objects=None, sync_every_block=True, sync_every_tx=False):
126+
self.blocks_and_transactions = objects if objects else []
127127
self.sync_every_block = sync_every_block
128128
self.sync_every_tx = sync_every_tx
129129

0 commit comments

Comments
 (0)