Mercurial > hg > mercurial-source
diff tests/hghave.py @ 24396: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 +++ b/tests/hghave.py @@ -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'