[Python-checkins] cpython: test_ssl: add more debug to investigate test_openssl_version() failure on
victor.stinner
python-checkins at python.org
Tue Jan 6 11:53:05 CET 2015
https://hg.python.org/cpython/rev/87976d72fd5c
changeset: 94041:87976d72fd5c
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Jan 06 11:51:06 2015 +0100
summary:
test_ssl: add more debug to investigate test_openssl_version() failure on
OpenBSD with LibreSSL.
files:
Lib/test/test_ssl.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -312,10 +312,10 @@
# 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):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list