[Python-checkins] cpython (2.7): debugging: print ca certs loaded into default ctx

benjamin.peterson python-checkins at python.org
Tue Nov 25 06:25:43 CET 2014


https://hg.python.org/cpython/rev/28fecaa8a74c
changeset:   93580:28fecaa8a74c
branch:      2.7
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Nov 24 23:25:29 2014 -0600
summary:
  debugging: print ca certs loaded into default ctx

files:
  Lib/test/test_httplib.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -554,6 +554,9 @@
     def test_networked_trusted_by_default_cert(self):
         # Default settings: requires a valid cert from a trusted CA
         test_support.requires('network')
+        if test_support.verbose:
+            import ssl
+            print(ssl._create_default_https_context().get_ca_certs())
         with test_support.transient_internet('www.python.org'):
             h = httplib.HTTPSConnection('www.python.org', 443)
             h.request('GET', '/')

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list