From faf2a975ad46799d075e3a70c699da0d8182aab9 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 7 Feb 2024 11:20:41 +0100 Subject: [PATCH] test: Use int.to_bytes over struct packing This is done in prepration for the scripted diff, which can not deal with those lines. --- test/functional/p2p_invalid_messages.py | 3 +-- test/functional/test_framework/script.py | 4 ++-- test/functional/wallet_balance.py | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py index 40a69936bcc..adcbb4fd051 100755 --- a/test/functional/p2p_invalid_messages.py +++ b/test/functional/p2p_invalid_messages.py @@ -5,7 +5,6 @@ """Test node responses to invalid network messages.""" import random -import struct import time from test_framework.messages import ( @@ -233,7 +232,7 @@ class InvalidMessagesTest(BitcoinTestFramework): '208d')) # port def test_addrv2_unrecognized_network(self): - now_hex = struct.pack('