Skip to content

Commit e9ca8b2

Browse files
committed
test: use f-strings in feature_help.py
1 parent ff7e330 commit e9ca8b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/feature_help.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ def run_test(self):
4040
# Node should exit immediately and output help to stdout.
4141
output, _ = self.get_node_output(ret_code_expected=0)
4242
assert b'Options' in output
43-
self.log.info("Help text received: {} (...)".format(output[0:60]))
43+
self.log.info(f"Help text received: {output[0:60]} (...)")
4444

4545
self.log.info("Start bitcoin with -version for version information")
4646
self.nodes[0].start(extra_args=['-version'])
4747
# Node should exit immediately and output version to stdout.
4848
output, _ = self.get_node_output(ret_code_expected=0)
4949
assert b'version' in output
50-
self.log.info("Version text received: {} (...)".format(output[0:60]))
50+
self.log.info(f"Version text received: {output[0:60]} (...)")
5151

5252
# Test that arguments not in the help results in an error
5353
self.log.info("Start bitcoind with -fakearg to make sure it does not start")
5454
self.nodes[0].start(extra_args=['-fakearg'])
5555
# Node should exit immediately and output an error to stderr
5656
_, output = self.get_node_output(ret_code_expected=1)
5757
assert b'Error parsing command line arguments' in output
58-
self.log.info("Error message received: {} (...)".format(output[0:60]))
58+
self.log.info(f"Error message received: {output[0:60]} (...)")
5959

6060

6161
if __name__ == '__main__':

0 commit comments

Comments
 (0)