tests/hghave.py
changeset 28591 f29cab5c519c
parent 28582 cdbc25306696
child 28756 45954a251a40
--- a/tests/hghave.py	Sat Mar 19 15:17:33 2016 -0700
+++ b/tests/hghave.py	Sat Mar 19 13:51:00 2016 -0700
@@ -341,15 +341,11 @@
     return not matchoutput('hg root 2>&1',
                            r'abort: no repository found', True)
 
-@check("ssl", ("(python >= 2.6 ssl module and python OpenSSL) "
-               "OR python >= 2.7.9 ssl"))
+@check("ssl", "ssl module available")
 def has_ssl():
     try:
         import ssl
-        if getattr(ssl, 'create_default_context', False):
-            return True
-        import OpenSSL
-        OpenSSL.SSL.Context
+        ssl.CERT_NONE
         return True
     except ImportError:
         return False