tests/hghave.py
changeset 25413 4d705f6a3c35
parent 25106 6f15114bdcc3
child 25658 e93036747902
--- a/tests/hghave.py	Mon Jun 01 14:16:52 2015 -0400
+++ b/tests/hghave.py	Thu May 07 17:38:22 2015 +0900
@@ -315,6 +315,15 @@
     except ImportError:
         return False
 
+@check("sslcontext", "python >= 2.7.9 ssl")
+def has_sslcontext():
+    try:
+        import ssl
+        ssl.SSLContext
+        return True
+    except (ImportError, AttributeError):
+        return False
+
 @check("defaultcacerts", "can verify SSL certs by system's CA certs store")
 def has_defaultcacerts():
     from mercurial import sslutil