tests/hghave.py
changeset 29601 6cff2ac0ccb9
parent 29576 d5067913f97b
child 29611 334632380e22
--- a/tests/hghave.py	Mon Jul 11 11:05:08 2016 +0200
+++ b/tests/hghave.py	Mon Jul 18 11:27:27 2016 -0700
@@ -439,6 +439,11 @@
 
     return len(ctx.get_ca_certs()) > 0
 
+@check("tls1.2", "TLS 1.2 protocol support")
+def has_tls1_2():
+    from mercurial import sslutil
+    return 'tls1.2' in sslutil.supportprotocols
+
 @check("windows", "Windows")
 def has_windows():
     return os.name == 'nt'