tests: add b'' when testing for tls1.2
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 25 Jan 2019 15:21:56 -0800
changeset 41381 423a6b2ddafa
parent 41380 090a797f2b47
child 41382 2f2a7ea62e9a
tests: add b'' when testing for tls1.2 The dict keys are bytes. The test was always failing due to looking for a str key. skip-blame: just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D5701
tests/hghave.py
--- a/tests/hghave.py	Fri Jan 25 15:15:59 2019 -0800
+++ b/tests/hghave.py	Fri Jan 25 15:21:56 2019 -0800
@@ -543,7 +543,7 @@
 @check("tls1.2", "TLS 1.2 protocol support")
 def has_tls1_2():
     from mercurial import sslutil
-    return 'tls1.2' in sslutil.supportedprotocols
+    return b'tls1.2' in sslutil.supportedprotocols
 
 @check("windows", "Windows")
 def has_windows():