mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:23:31 +03:00
mbedtls: fix pytest for newer versions
Fix the expectations in pytest for newer versions of mbedtls Closes #13132
This commit is contained in:
parent
79cdae4fc7
commit
3d0fd382a2
3 changed files with 24 additions and 13 deletions
|
|
@ -362,6 +362,10 @@ class TestProxy:
|
|||
xargs = curl.get_proxy_args(proto=proto, use_ip=True)
|
||||
r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
|
||||
extra_args=xargs)
|
||||
r.check_response(count=1, http_status=200,
|
||||
protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
|
||||
if env.curl_uses_lib('mbedtls') and \
|
||||
not env.curl_lib_version_at_least('mbedtls', '3.5.0'):
|
||||
r.check_exit_code(60) # CURLE_PEER_FAILED_VERIFICATION
|
||||
else:
|
||||
r.check_response(count=1, http_status=200,
|
||||
protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue