From df8f8095b638e439dd5f33a2dc762475ee930f4d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 22 Jul 2015 12:03:16 -0400 Subject: [PATCH] Don't share objects between TestInstances --- qa/rpc-tests/test_framework/comptool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/test_framework/comptool.py b/qa/rpc-tests/test_framework/comptool.py index 24ae05807..b945f1bf2 100755 --- a/qa/rpc-tests/test_framework/comptool.py +++ b/qa/rpc-tests/test_framework/comptool.py @@ -140,8 +140,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