changeset 41381:423a6b2ddafa

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 25 Jan 2019 15:21:56 -0800
parents 090a797f2b47
children 2f2a7ea62e9a
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():