From: Victor Stinner Date: Tue, 6 Jan 2015 10:51:06 +0000 (+0100) Subject: test_ssl: add more debug to investigate test_openssl_version() failure on X-Git-Tag: v3.5.0a1~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=789b80570069143db8caab5339a56c65212336fe;p=python test_ssl: add more debug to investigate test_openssl_version() failure on OpenBSD with LibreSSL. --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 7362bacbfb..3bb98193d1 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -312,10 +312,10 @@ class BasicSocketTests(unittest.TestCase): # Version string as returned by {Open,Libre}SSL, the format might change if "LibreSSL" in s: self.assertTrue(s.startswith("LibreSSL {:d}.{:d}".format(major, minor)), - (s, t)) + (s, t, hex(n))) else: self.assertTrue(s.startswith("OpenSSL {:d}.{:d}.{:d}".format(major, minor, fix)), - (s, t)) + (s, t, hex(n))) @support.cpython_only def test_refcycle(self):