##// END OF EJS Templates
test-https: enable dummycert test only if Apple python is used (issue4500)...
Yuya Nishihara -
r24289:07fafcd4 default
parent child Browse files
Show More
@@ -320,6 +320,11 b' def has_ssl():'
320 except ImportError:
320 except ImportError:
321 return False
321 return False
322
322
323 @check("defaultcacerts", "can verify SSL certs by system's CA certs store")
324 def has_defaultcacerts():
325 from mercurial import sslutil
326 return sslutil._defaultcacerts()
327
323 @check("windows", "Windows")
328 @check("windows", "Windows")
324 def has_windows():
329 def has_windows():
325 return os.name == 'nt'
330 return os.name == 'nt'
@@ -119,7 +119,7 b' OS X has a dummy CA cert that enables us'
119 Apple's OpenSSL. This trick do not work with plain OpenSSL.
119 Apple's OpenSSL. This trick do not work with plain OpenSSL.
120
120
121 $ DISABLEOSXDUMMYCERT=
121 $ DISABLEOSXDUMMYCERT=
122 #if osx
122 #if defaultcacerts
123 $ hg clone https://localhost:$HGPORT/ copy-pull
123 $ hg clone https://localhost:$HGPORT/ copy-pull
124 abort: error: *certificate verify failed* (glob)
124 abort: error: *certificate verify failed* (glob)
125 [255]
125 [255]
General Comments 0
You need to be logged in to leave comments. Login now