From 76a5570b368e0ecf6456a9a62d8f6502809546b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc?= Date: Sun, 8 Mar 2026 20:14:58 +0000 Subject: [PATCH] test: use `in` for two-value equality asserts Some tests spell a two-value membership check as `assert x == a or x == b`. Rewrite those sites as `assert x in (a, b)`. This keeps the check the same and removes `==` forms that the later cleanup should not touch. --- test/functional/interface_zmq.py | 6 +++--- test/functional/p2p_compactblocks.py | 6 ++---- test/functional/wallet_send.py | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 79882a436fa..f8a6bfc69bc 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -75,9 +75,9 @@ class ZMQSubscriber: label = chr(body[32]) mempool_sequence = None if len(body) != 32+1+8 else struct.unpack("