Fixed test_ciphers_none_can_be_selected on OpenBSD

Thanks @juped!
This commit is contained in:
Jakub Roztocil 2020-06-19 18:26:08 +02:00
parent d6f25b1017
commit 49e71d252f

View File

@ -133,4 +133,9 @@ def test_ciphers_none_can_be_selected(httpbin_secure):
tolerate_error_exit_status=True, tolerate_error_exit_status=True,
) )
assert r.exit_status == ExitStatus.ERROR assert r.exit_status == ExitStatus.ERROR
assert 'No cipher can be selected.' in r.stderr # Linux/macOS:
# http: error: SSLError: ('No cipher can be selected.',)
# OpenBSD:
# <https://marc.info/?l=openbsd-ports&m=159251948515635&w=2>
# http: error: Error: [('SSL routines', '(UNKNOWN)SSL_internal', 'no cipher match')]
assert 'cipher' in r.stderr