diff options
author | fanquake <fanquake@gmail.com> | 2021-06-12 14:26:31 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-08-18 12:39:20 +0800 |
commit | c2a5d560df2824df5731100c2584e8ad7a3d7bc2 (patch) | |
tree | 38959dad0ab73cc9fefaeb8eb5d4a1b1f14870d3 /test/functional/interface_rpc.py | |
parent | 86d958262dff43002820d58ccb8958e2dbfb9d5b (diff) |
test: use f-strings in interface_*.py tests
Diffstat (limited to 'test/functional/interface_rpc.py')
-rwxr-xr-x | test/functional/interface_rpc.py | 2 |
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) |