tests/hghave.py
changeset 29601 6cff2ac0ccb9
parent 29576 d5067913f97b
child 29611 334632380e22
equal deleted inserted replaced
29600:7a157639b8f2 29601:6cff2ac0ccb9
   436         ctx.load_verify_locations(cafile=cafile)
   436         ctx.load_verify_locations(cafile=cafile)
   437     else:
   437     else:
   438         ctx.load_default_certs()
   438         ctx.load_default_certs()
   439 
   439 
   440     return len(ctx.get_ca_certs()) > 0
   440     return len(ctx.get_ca_certs()) > 0
       
   441 
       
   442 @check("tls1.2", "TLS 1.2 protocol support")
       
   443 def has_tls1_2():
       
   444     from mercurial import sslutil
       
   445     return 'tls1.2' in sslutil.supportprotocols
   441 
   446 
   442 @check("windows", "Windows")
   447 @check("windows", "Windows")
   443 def has_windows():
   448 def has_windows():
   444     return os.name == 'nt'
   449     return os.name == 'nt'
   445 
   450