churchyard / rpms / python2

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