diff --git a/tests/http/test_02_download.py b/tests/http/test_02_download.py index 940245920d..e556c014b8 100644 --- a/tests/http/test_02_download.py +++ b/tests/http/test_02_download.py @@ -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) diff --git a/tests/http/test_21_resolve.py b/tests/http/test_21_resolve.py index a287cfdf8f..ec15de7a9c 100644 --- a/tests/http/test_21_resolve.py +++ b/tests/http/test_21_resolve.py @@ -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)