aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2015-07-22 12:03:16 -0400
committerCasey Rodarmor <casey@rodarmor.com>2015-07-22 12:03:16 -0400
commit56b28fca46d07079462f0380e6fbd52b6507079a (patch)
treeacecd0d0a40aeaa44a0163e8b2aab181ff59373d /qa
parent45d1f5932ba85b8e5f3e2cc6839bf7a257ca460a (diff)
Don't share objects between TestInstances
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/test_framework/comptool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/test_framework/comptool.py b/qa/rpc-tests/test_framework/comptool.py
index 23a979250c..7fb31d4a06 100755
--- a/qa/rpc-tests/test_framework/comptool.py
+++ b/qa/rpc-tests/test_framework/comptool.py
@@ -122,8 +122,8 @@ class TestNode(NodeConnCB):
# 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