diff -r 443d4635e630 -r 4d705f6a3c35 tests/hghave.py --- 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