]> granicus.if.org Git - python/commitdiff
test_ssl: add more debug to investigate test_openssl_version() failure on
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Jan 2015 10:51:06 +0000 (11:51 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Jan 2015 10:51:06 +0000 (11:51 +0100)
OpenBSD with LibreSSL.

Lib/test/test_ssl.py

index 7362bacbfb162be7850f3f6fdfc5e46037309198..3bb98193d195d6963281d4960044a742368fad47 100644 (file)
@@ -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):