mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
http tidy up two cases of outlier set/list syntax
This commit is contained in:
parent
8762fbd72a
commit
2debd298ae
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue