aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-24 10:59:18 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-07-24 10:59:45 +0200
commit410fd7448a58b497ac0c3207b6e1d076c13bca2e (patch)
treeb888441541053c594d061519a2914df4949bb9c1 /qa/rpc-tests
parentd2464dfee928cdd4194516e9bc8b541c22972ab9 (diff)
parent56b28fca46d07079462f0380e6fbd52b6507079a (diff)
Merge pull request #6465
56b28fc Don't share objects between TestInstances (Casey Rodarmor)
Diffstat (limited to 'qa/rpc-tests')
-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