Blame 00270-fix-ssl-alpn-hook-test.patch

f83409d
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
f83409d
index d203cdd..c128dae 100644
f83409d
--- a/Lib/test/test_ssl.py
f83409d
+++ b/Lib/test/test_ssl.py
f83409d
@@ -3256,8 +3256,9 @@ if _have_threads:
f83409d
                 except ssl.SSLError as e:
f83409d
                     stats = e
f83409d
 
f83409d
-                if expected is None and IS_OPENSSL_1_1:
f83409d
-                    # OpenSSL 1.1.0 raises handshake error
f83409d
+                if (expected is None and IS_OPENSSL_1_1
f83409d
+                        and ssl.OPENSSL_VERSION_INFO < (1, 1, 0, 6)):
f83409d
+                    # OpenSSL 1.1.0 to 1.1.0e raises handshake error
f83409d
                     self.assertIsInstance(stats, ssl.SSLError)
f83409d
                 else:
f83409d
                     msg = "failed trying %s (s) and %s (c).\n" \