Mercurial > hg
diff tests/hghave.py @ 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 | fabb0224a599 |
children | 1a6a01a21d6a |
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():