aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_cltv.py
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-06-11 13:47:14 +0800
committerfanquake <fanquake@gmail.com>2021-08-18 12:39:17 +0800
commit36d33d32b1b498b61f56d552f6e2c1d064f978c3 (patch)
tree3ba886616ee730a1a77436c17a8ab6383a2d08c6 /test/functional/feature_cltv.py
parentdca173cc044270b30782b1e3355e9dcb8c534295 (diff)
downloadbitcoin-36d33d32b1b498b61f56d552f6e2c1d064f978c3.tar.xz
test: use f-strings in feature_cltv.py
Diffstat (limited to 'test/functional/feature_cltv.py')
-rwxr-xr-xtest/functional/feature_cltv.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/feature_cltv.py b/test/functional/feature_cltv.py
index 7c14f5d5a6..dc5bffe33e 100755
--- a/test/functional/feature_cltv.py
+++ b/test/functional/feature_cltv.py
@@ -135,7 +135,7 @@ class BIP65Test(BitcoinTestFramework):
block.nVersion = 3
block.solve()
- with self.nodes[0].assert_debug_log(expected_msgs=['{}, bad-version(0x00000003)'.format(block.hash)]):
+ with self.nodes[0].assert_debug_log(expected_msgs=[f'{block.hash}, bad-version(0x00000003)']):
peer.send_and_ping(msg_block(block))
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
peer.sync_with_ping()
@@ -173,8 +173,7 @@ class BIP65Test(BitcoinTestFramework):
block.hashMerkleRoot = block.calc_merkle_root()
block.solve()
- with self.nodes[0].assert_debug_log(expected_msgs=['CheckInputScripts on {} failed with {}'.format(
- block.vtx[-1].hash, expected_cltv_reject_reason)]):
+ with self.nodes[0].assert_debug_log(expected_msgs=[f'CheckInputScripts on {block.vtx[-1].hash} failed with {expected_cltv_reject_reason}']):
peer.send_and_ping(msg_block(block))
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
peer.sync_with_ping()