comparison tests/hghave.py @ 29611:334632380e22 stable

hghave: fix typo of sslutil.supportedprotocols
author Yuya Nishihara <yuya@tcha.org>
date Tue, 19 Jul 2016 21:16:44 +0900
parents 6cff2ac0ccb9
children 94fb0458a791
comparison
equal deleted inserted replaced
29610:754f63671229 29611:334632380e22
440 return len(ctx.get_ca_certs()) > 0 440 return len(ctx.get_ca_certs()) > 0
441 441
442 @check("tls1.2", "TLS 1.2 protocol support") 442 @check("tls1.2", "TLS 1.2 protocol support")
443 def has_tls1_2(): 443 def has_tls1_2():
444 from mercurial import sslutil 444 from mercurial import sslutil
445 return 'tls1.2' in sslutil.supportprotocols 445 return 'tls1.2' in sslutil.supportedprotocols
446 446
447 @check("windows", "Windows") 447 @check("windows", "Windows")
448 def has_windows(): 448 def has_windows():
449 return os.name == 'nt' 449 return os.name == 'nt'
450 450