forked from extern/httpie-cli
fix test_ssl_version II
This commit is contained in:
parent
29df4cd4f3
commit
4dd9dbd314
@ -44,9 +44,9 @@ def test_ssl_version(httpbin_secure, ssl_version):
|
|||||||
)
|
)
|
||||||
assert HTTP_OK in r
|
assert HTTP_OK in r
|
||||||
except ssl_errors as e:
|
except ssl_errors as e:
|
||||||
if ssl_version == 'ssl3' and not is_pypy:
|
if ssl_version == 'ssl3':
|
||||||
# pytest-httpbin doesn't support ssl3 (unless on pypy)
|
# pytest-httpbin doesn't support ssl3
|
||||||
assert 'SSLV3_ALERT_HANDSHAKE_FAILURE' in str(e)
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user