Skip to content

Commit 8239794

Browse files
Use the variable name _ for unused return values
1 parent 2e6080b commit 8239794

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/functional/mempool_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def run_test(self):
213213
value = send_value
214214

215215
# Create tx1
216-
(tx1_id, tx1_value) = self.chain_transaction(self.nodes[0], tx0_id, 0, value, fee, 1)
216+
tx1_id, _ = self.chain_transaction(self.nodes[0], tx0_id, 0, value, fee, 1)
217217

218218
# Create tx2-7
219219
vout = 1

test/functional/preciousblock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ def run_test(self):
4747
self.log.info("Ensure submitblock can in principle reorg to a competing chain")
4848
self.nodes[0].generate(1)
4949
assert_equal(self.nodes[0].getblockcount(), 1)
50-
(hashY, hashZ) = self.nodes[1].generate(2)
50+
hashZ = self.nodes[1].generate(2)[-1]
5151
assert_equal(self.nodes[1].getblockcount(), 2)
5252
node_sync_via_rpc(self.nodes[0:3])
5353
assert_equal(self.nodes[0].getbestblockhash(), hashZ)
5454

5555
self.log.info("Mine blocks A-B-C on Node 0")
56-
(hashA, hashB, hashC) = self.nodes[0].generate(3)
56+
hashC = self.nodes[0].generate(3)[-1]
5757
assert_equal(self.nodes[0].getblockcount(), 5)
5858
self.log.info("Mine competing blocks E-F-G on Node 1")
59-
(hashE, hashF, hashG) = self.nodes[1].generate(3)
59+
hashG = self.nodes[1].generate(3)[-1]
6060
assert_equal(self.nodes[1].getblockcount(), 5)
6161
assert(hashC != hashG)
6262
self.log.info("Connect nodes and check no reorg occurs")

test/functional/test_framework/socks5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def handle(self):
9191
self.conn.sendall(bytearray([0x01, 0x00]))
9292

9393
# Read connect request
94-
(ver,cmd,rsv,atyp) = recvall(self.conn, 4)
94+
ver, cmd, _, atyp = recvall(self.conn, 4)
9595
if ver != 0x05:
9696
raise IOError('Invalid socks version %i in connect request' % ver)
9797
if cmd != Command.CONNECT:

test/functional/wallet-dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def run_test (self):
101101
self.nodes[0].keypoolrefill()
102102
self.nodes[0].dumpwallet(tmpdir + "/node0/wallet.encrypted.dump")
103103

104-
found_addr, found_addr_chg, found_addr_rsv, hd_master_addr_enc = \
104+
found_addr, found_addr_chg, found_addr_rsv, _ = \
105105
read_dump(tmpdir + "/node0/wallet.encrypted.dump", addrs, hd_master_addr_unenc)
106106
assert_equal(found_addr, test_addr_count)
107107
assert_equal(found_addr_chg, 90*2 + 50) # old reserve keys are marked as change now

0 commit comments

Comments
 (0)