Skip to content

Commit 5453e87

Browse files
committed
test: use f-strings in feature_backwards_compatibility.py
1 parent 6f3d5ad commit 5453e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_backwards_compatibility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def run_test(self):
366366
assert_equal(load_res['warning'], '')
367367
wallet = node_master.get_wallet_rpc("u1_v16")
368368
info = wallet.getaddressinfo(v16_addr)
369-
descriptor = "wpkh([" + info["hdmasterfingerprint"] + hdkeypath[1:] + "]" + v16_pubkey + ")"
369+
descriptor = f"wpkh([{info['hdmasterfingerprint']}{hdkeypath[1:]}]{v16_pubkey})"
370370
assert_equal(info["desc"], descsum_create(descriptor))
371371

372372
# Now copy that same wallet back to 0.16 to make sure no automatic upgrade breaks it
@@ -389,7 +389,7 @@ def run_test(self):
389389
node_master.loadwallet("u1_v17")
390390
wallet = node_master.get_wallet_rpc("u1_v17")
391391
info = wallet.getaddressinfo(address)
392-
descriptor = "wpkh([" + info["hdmasterfingerprint"] + hdkeypath[1:] + "]" + pubkey + ")"
392+
descriptor = f"wpkh([{info['hdmasterfingerprint']}{hdkeypath[1:]}]{pubkey})"
393393
assert_equal(info["desc"], descsum_create(descriptor))
394394

395395
# Now copy that same wallet back to 0.17 to make sure no automatic upgrade breaks it

0 commit comments

Comments
 (0)