aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-20 08:19:46 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-09-20 08:19:59 -0400
commitf8b0b190aa9d13e93ebfe34b5655dbe8ed8df3d3 (patch)
treef9a2086625e81b5109c8dda17ce8910101c8f866 /test/functional
parent04321494aea6e18027d156d4bc8aff02d3347028 (diff)
parentfa2e038691263ddd107df233148d9814630d4a18 (diff)
Merge #16920: test: Fix extra_args in wallet_import_rescan.py
fa2e038691263ddd107df233148d9814630d4a18 test: Fix extra_args in wallet_import_rescan.py (MarcoFalke) Pull request description: Bug introduced by me (:man_facepalming:) in fa25668e1c8982548f1c6f94780709c625811469 For reference: ``` >>> a = [[]]*2 >>> a[0] += ['ONE'] >>> a [['ONE'], ['ONE']] >>> a = [[] for _ in range(2)] >>> a[0] += ['ONE'] >>> a [['ONE'], []] ACKs for top commit: theStack: utACK fa2e038 Tree-SHA512: 7d75a0d06233d013d62198ea95793612242254d5d90f393d01b2beef5abc78d6e85c796532311638f16cfed3b66a7ae41a108c0fe6f0f5d7f6616b042c670df7
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/wallet_import_rescan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_import_rescan.py b/test/functional/wallet_import_rescan.py
index 4e20892596..79062a4a29 100755
--- a/test/functional/wallet_import_rescan.py
+++ b/test/functional/wallet_import_rescan.py
@@ -150,7 +150,7 @@ class ImportRescanTest(BitcoinTestFramework):
self.skip_if_no_wallet()
def setup_network(self):
- self.extra_args = [[]] * self.num_nodes
+ self.extra_args = [[] for _ in range(self.num_nodes)]
for i, import_node in enumerate(IMPORT_NODES, 2):
if import_node.prune:
self.extra_args[i] += ["-prune=1"]