http tidy up two cases of outlier set/list syntax

This commit is contained in:
Viktor Szakats 2026-07-27 11:33:14 +02:00
parent 8762fbd72a
commit 2debd298ae
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -718,7 +718,7 @@ class TestDownload:
# or destroys the connection with internal error
# ERR_QPACK_HEADER_TOO_LARGE,
# depending on nghttp3 version and payload size
assert r.exit_code in (0, 56), f'expected exit code 0 or 56, '\
assert r.exit_code in [0, 56], f'expected exit code 0 or 56, '\
f'got {r.exit_code}\n{r.dump_logs()}'
if r.exit_code == 0:
r.check_response(http_status=431)

View file

@ -298,7 +298,7 @@ class TestResolve:
'--connect-timeout', '1'
])
# should fail with CURLE_OPERATION_TIMEOUT or COULDNT_CONNECT
assert r.exit_code in (7, 28), f'{r.dump_logs()}'
assert r.exit_code in [7, 28], f'{r.dump_logs()}'
af_unspec_resolves = [
line for line in r.trace_lines
if re.match(r'.* \[DNS] re-queueing query .+ for AF_UNSPEC resolve', line)