diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-08-03 01:10:56 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-08-06 18:39:33 +0200 |
commit | dac7a111bdd3b0233d94cf68dae7a8bfc6ac9c64 (patch) | |
tree | c3ae6f8e52eade778dff7c9ad679a919db22778b /test/functional/wallet_basic.py | |
parent | 82127d27c9001eee3eb28df67ce2e6eace620423 (diff) | |
download | bitcoin-dac7a111bdd3b0233d94cf68dae7a8bfc6ac9c64.tar.xz |
refactor: test: use _ variable for unused loop counters
substitutes "for x in range(N):" by "for _ in range(N):"
indicates to the reader that a block is just repeated N times, and
that the loop counter is not used in the body
Diffstat (limited to 'test/functional/wallet_basic.py')
-rwxr-xr-x | test/functional/wallet_basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index 81382d94ad..d9a8b58a84 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -569,7 +569,7 @@ class WalletTest(BitcoinTestFramework): # So we should be able to generate exactly chainlimit txs for each original output sending_addr = self.nodes[1].getnewaddress() txid_list = [] - for i in range(chainlimit * 2): + for _ in range(chainlimit * 2): txid_list.append(self.nodes[0].sendtoaddress(sending_addr, Decimal('0.0001'))) assert_equal(self.nodes[0].getmempoolinfo()['size'], chainlimit * 2) assert_equal(len(txid_list), chainlimit * 2) |