Skip to content

Commit 38c3fd8

Browse files
committed
test: python E721 updates
1 parent 44b05bf commit 38c3fd8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/functional/p2p_invalid_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_test(self):
3232
within_max_peer = node.add_p2p_connection(P2PInterface())
3333
msg.locator.vHave = [int(node.getblockhash(i - 1), 16) for i in range(block_count, block_count - (MAX_LOCATOR_SZ), -1)]
3434
within_max_peer.send_message(msg)
35-
if type(msg) == msg_getheaders:
35+
if type(msg) is msg_getheaders:
3636
within_max_peer.wait_for_header(node.getbestblockhash())
3737
else:
3838
within_max_peer.wait_for_block(int(node.getbestblockhash(), 16))

test/functional/test_framework/siphash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def siphash_round(v0, v1, v2, v3):
3131

3232

3333
def siphash(k0, k1, data):
34-
assert type(data) == bytes
34+
assert type(data) is bytes
3535
v0 = 0x736f6d6570736575 ^ k0
3636
v1 = 0x646f72616e646f6d ^ k1
3737
v2 = 0x6c7967656e657261 ^ k0
@@ -61,5 +61,5 @@ def siphash(k0, k1, data):
6161

6262

6363
def siphash256(k0, k1, num):
64-
assert type(num) == int
64+
assert type(num) is int
6565
return siphash(k0, k1, num.to_bytes(32, 'little'))

0 commit comments

Comments
 (0)