diff --git a/test/functional/abc-finalize-block.py b/test/functional/abc-finalize-block.py --- a/test/functional/abc-finalize-block.py +++ b/test/functional/abc-finalize-block.py @@ -91,7 +91,7 @@ wait_for_block(node, invalid_block) # Later block headers are rejected - for i in range(2, 9): + for _ in range(2, 9): alt_node.generatetoaddress( 1, alt_node.get_deterministic_priv_key().address) assert_raises_rpc_error(-5, RPC_BLOCK_NOT_FOUND_ERROR, diff --git a/test/functional/abc-magnetic-anomaly-mining.py b/test/functional/abc-magnetic-anomaly-mining.py --- a/test/functional/abc-magnetic-anomaly-mining.py +++ b/test/functional/abc-magnetic-anomaly-mining.py @@ -43,7 +43,7 @@ # Generate some unspent utxos and also # activate magnetic anomaly - for x in range(150): + for _ in range(150): update_time() mining_node.generate(1) diff --git a/test/functional/abc-parkedchain.py b/test/functional/abc-parkedchain.py --- a/test/functional/abc-parkedchain.py +++ b/test/functional/abc-parkedchain.py @@ -179,7 +179,7 @@ nblocks=depth, address=node.getnewaddress(label='coinbase')) # extra block should now find themselves parked - for i in range(extra_blocks): + for _ in range(extra_blocks): node.generate(1) wait_for_parked_block(node.getbestblockhash()) diff --git a/test/functional/abc-sync-chain.py b/test/functional/abc-sync-chain.py --- a/test/functional/abc-sync-chain.py +++ b/test/functional/abc-sync-chain.py @@ -45,7 +45,7 @@ time = node0.getblock(node0.getbestblockhash())['time'] + 1 blocks = [] - for i in range(NUM_IBD_BLOCKS * 2): + for _ in range(NUM_IBD_BLOCKS * 2): block = create_block(tip, create_coinbase(height), time) block.solve() blocks.append(block) diff --git a/test/functional/abc_rpc_getavalanchepeerinfo.py b/test/functional/abc_rpc_getavalanchepeerinfo.py --- a/test/functional/abc_rpc_getavalanchepeerinfo.py +++ b/test/functional/abc_rpc_getavalanchepeerinfo.py @@ -46,8 +46,8 @@ return (pubkey.get_bytes().hex(), proof) # Create peercount * nodecount node array - nodes = [[get_ava_p2p_interface(node) for n in range( - nodecount)] for p in range(peercount)] + nodes = [[get_ava_p2p_interface(node) for _ in range( + nodecount)] for _ in range(peercount)] # Add peercount peers and bind all the nodes to each proofs = [] diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -559,7 +559,7 @@ resultCollector.start() # Start some worker threads - for job in range(num_jobs): + for _ in range(num_jobs): t = threading.Thread(target=handle_test_cases) t.daemon = True t.start() @@ -576,7 +576,7 @@ # Flush our queues so the threads exit update_queue.put(None) - for job in range(num_jobs): + for _ in range(num_jobs): job_queue.put(None) return test_results