diff tests/hghave.py @ 24289:07fafcd4bc74

test-https: enable dummycert test only if Apple python is used (issue4500) The dummycert trick works only if Python is linked to Apple's patched OpenSSL.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 04 Mar 2015 22:41:48 +0900
parents b2358bc1407c
children b76d8c641746
line wrap: on
line diff
--- a/tests/hghave.py	Wed Mar 04 22:27:01 2015 +0900
+++ b/tests/hghave.py	Wed Mar 04 22:41:48 2015 +0900
@@ -320,6 +320,11 @@
     except ImportError:
         return False
 
+@check("defaultcacerts", "can verify SSL certs by system's CA certs store")
+def has_defaultcacerts():
+    from mercurial import sslutil
+    return sslutil._defaultcacerts()
+
 @check("windows", "Windows")
 def has_windows():
     return os.name == 'nt'