tests/hghave.py
changeset 52285 323e3626929a
parent 52129 f1312d0803a8
child 52546 384d71e3dd65
--- a/tests/hghave.py	Mon Dec 21 13:50:25 2020 -0500
+++ b/tests/hghave.py	Mon Dec 21 20:21:46 2020 -0500
@@ -706,6 +706,13 @@
     return b'tls1.2' in sslutil.supportedprotocols
 
 
+@check("tls1.3", "TLS 1.3 protocol support")
+def has_tls1_3():
+    from mercurial import sslutil
+
+    return b'tls1.3' in sslutil.supportedprotocols
+
+
 @check("windows", "Windows")
 def has_windows():
     return os.name == 'nt'