diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-24 23:25:29 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-24 23:25:29 -0600 |
commit | 6f31b002f446d2da8d8d2387f854ee3fdc185539 (patch) | |
tree | d6b60c47c44fb6c7db8ef9c9cc4e23ae57accf08 | |
parent | 3b9b586778b56dd2bddf0f9a6c9f506ee9d4a049 (diff) | |
download | cpython-6f31b002f446d2da8d8d2387f854ee3fdc185539.tar.gz |
debugging: print ca certs loaded into default ctx
-rw-r--r-- | 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 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', '/') |