diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py index fb534b936f..2295fc2c26 100644 --- a/cheroot/test/test_ssl.py +++ b/cheroot/test/test_ssl.py @@ -597,9 +597,9 @@ def test_https_over_http_error(http_server, ip_addr): ), ).request('GET', '/') expected_substring = ( - '[SSL] record layer failure (_ssl.c:1000)' if IS_OPENSSL3 - else 'wrong version number' if IS_ABOVE_OPENSSL10 - else 'unknown protocol' + '[SSL] record layer failure (_ssl.c:1000)' if IS_OPENSSL3 + else 'wrong version number' if IS_ABOVE_OPENSSL10 + else 'unknown protocol' ) assert expected_substring in ssl_err.value.args[-1]