tests/http: fix log formatting on wrong exit code

Closes #10868
This commit is contained in:
Stefan Eissing 2023-03-30 11:20:24 +02:00 committed by Daniel Stenberg
parent 843a72b456
commit f8f010e469
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -162,7 +162,7 @@ class ExecResult:
def check_exit_code(self, code: int):
assert self.exit_code == code, \
f'expected exit code {code}, '\
'got {self.exit_code}\n{self._dump_logs()}'
f'got {self.exit_code}\n{self._dump_logs()}'
def check_exit_code_not(self, code: int):
assert self.exit_code != code, \