From: Benjamin Peterson Date: Tue, 25 Nov 2014 05:25:29 +0000 (-0600) Subject: debugging: print ca certs loaded into default ctx X-Git-Tag: v2.7.9rc1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=226fa562bff54dec9cd131fdf5950b8aa9a2b3a9;p=python debugging: print ca certs loaded into default ctx --- diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index e68555a169..4c1f16567f 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -554,6 +554,9 @@ class HTTPSTest(TestCase): 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', '/')