aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_rpc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/interface_rpc.py')
-rwxr-xr-xtest/functional/interface_rpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/interface_rpc.py b/test/functional/interface_rpc.py
index 4d5666f414..89a7d29b24 100755
--- a/test/functional/interface_rpc.py
+++ b/test/functional/interface_rpc.py
@@ -16,7 +16,7 @@ def expect_http_status(expected_http_status, expected_rpc_code,
fcn, *args):
try:
fcn(*args)
- raise AssertionError("Expected RPC error %d, got none" % expected_rpc_code)
+ raise AssertionError(f"Expected RPC error {expected_rpc_code}, got none")
except JSONRPCException as exc:
assert_equal(exc.error["code"], expected_rpc_code)
assert_equal(exc.http_status, expected_http_status)