churchyard / rpms / python3

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