Skip to content

Commit

Permalink
Merge pull request #6465
Browse files Browse the repository at this point in the history
56b28fc Don't share objects between TestInstances (Casey Rodarmor)
  • Loading branch information
laanwj committed Jul 24, 2015
2 parents d2464df + 56b28fc commit 410fd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/rpc-tests/test_framework/comptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def send_mempool(self):
# or false, then only the last tx is tested against outcome.)

class TestInstance(object):
def __init__(self, objects=[], sync_every_block=True, sync_every_tx=False):
self.blocks_and_transactions = objects
def __init__(self, objects=None, sync_every_block=True, sync_every_tx=False):
self.blocks_and_transactions = objects if objects else []
self.sync_every_block = sync_every_block
self.sync_every_tx = sync_every_tx

Expand Down

0 comments on commit 410fd74

Please sign in to comment.