torsava / rpms / python3

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