Skip to content

Commit a2de33c

Browse files
committed
test: use f-strings in feature_dersig.py
1 parent a2502cc commit a2de33c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_dersig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def run_test(self):
104104
block.rehash()
105105
block.solve()
106106

107-
with self.nodes[0].assert_debug_log(expected_msgs=['{}, bad-version(0x00000002)'.format(block.hash)]):
107+
with self.nodes[0].assert_debug_log(expected_msgs=[f'{block.hash}, bad-version(0x00000002)']):
108108
peer.send_and_ping(msg_block(block))
109109
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
110110
peer.sync_with_ping()
@@ -134,7 +134,7 @@ def run_test(self):
134134
block.rehash()
135135
block.solve()
136136

137-
with self.nodes[0].assert_debug_log(expected_msgs=['CheckInputScripts on {} failed with non-mandatory-script-verify-flag (Non-canonical DER signature)'.format(block.vtx[-1].hash)]):
137+
with self.nodes[0].assert_debug_log(expected_msgs=[f'CheckInputScripts on {block.vtx[-1].hash} failed with non-mandatory-script-verify-flag (Non-canonical DER signature)']):
138138
peer.send_and_ping(msg_block(block))
139139
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
140140
peer.sync_with_ping()

0 commit comments

Comments
 (0)