0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

test: use f-strings in feature_settings.py

This commit is contained in:
fanquake 2021-06-11 15:26:49 +08:00
parent 6651d77f22
commit cf6d66bf94
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -83,7 +83,7 @@ class SettingsTest(BitcoinTestFramework):
with altsettings.open("w") as fp:
fp.write('{"key": "value"}')
with node.assert_debug_log(expected_msgs=['Setting file arg: key = "value"']):
self.start_node(0, extra_args=["-settings={}".format(altsettings)])
self.start_node(0, extra_args=[f"-settings={altsettings}"])
self.stop_node(0)