Temporarily display OpenSSL version in verbose run -- trying to diagnose failure on Neal's buildbot.

This commit is contained in:
Antoine Pitrou 2010-04-22 17:44:41 +00:00
parent 398246169c
commit 60b1ee375c
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ class NetworkedTests(unittest.TestCase):
s = ssl.wrap_socket(socket.socket(socket.AF_INET),
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=sha256_cert,)
if test_support.verbose:
sys.stdout.write("\nOpenSSL version is %r / %r" %
(ssl.OPENSSL_VERSION, ssl.OPENSSL_VERSION_INFO))
with test_support.transient_internet():
try:
s.connect(remote)