mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
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
This commit is contained in:
@ -116,7 +116,7 @@ class WalletDumpTest(BitcoinTestFramework):
|
||||
test_addr_count = 10
|
||||
addrs = []
|
||||
for address_type in ['legacy', 'p2sh-segwit', 'bech32']:
|
||||
for i in range(0, test_addr_count):
|
||||
for _ in range(test_addr_count):
|
||||
addr = self.nodes[0].getnewaddress(address_type=address_type)
|
||||
vaddr = self.nodes[0].getaddressinfo(addr) # required to get hd keypath
|
||||
addrs.append(vaddr)
|
||||
|
Reference in New Issue
Block a user