diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py index a084f4d447..900d39ed36 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 = ( - 'record layer failure' if IS_ABOVE_OPENSSL31 - else 'wrong version number' if IS_ABOVE_OPENSSL10 - else 'unknown protocol' + 'record layer failure' if IS_ABOVE_OPENSSL31 + else 'wrong version number' if IS_ABOVE_OPENSSL10 + else 'unknown protocol' ) assert expected_substring in ssl_err.value.args[-1]