From 49e71d252f54871a6bc49cb1cba103d385a543b8 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Fri, 19 Jun 2020 18:26:08 +0200 Subject: [PATCH] Fixed `test_ciphers_none_can_be_selected` on OpenBSD Thanks @juped! --- tests/test_ssl.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_ssl.py b/tests/test_ssl.py index 31e0d534..3ee94d84 100644 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -133,4 +133,9 @@ def test_ciphers_none_can_be_selected(httpbin_secure): tolerate_error_exit_status=True, ) 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: + # + # http: error: Error: [('SSL routines', '(UNKNOWN)SSL_internal', 'no cipher match')] + assert 'cipher' in r.stderr