Skip to content

Commit

Permalink
tests: fix wait_tcp_port format string.
Browse files Browse the repository at this point in the history
The success-case `print` for the `wait_tcp_port` helper wasn't
formatting its message as an f-string, instead printing the literal
`{host}` and `{port}` placeholders.
  • Loading branch information
cpu committed Aug 16, 2023
1 parent db40a7b commit 6f9bcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/client-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def wait_tcp_port(host, port):
else:
print("client-server.py: unable to connect")
sys.exit(1)
print("client-server.py: detected server is up on {host}:{port}")
print(f"client-server.py: detected server is up on {host}:{port}")

class Failure(Exception):
pass
Expand Down

0 comments on commit 6f9bcf5

Please sign in to comment.