summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-25 05:25:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-25 05:25:29 (GMT)
commit226fa562bff54dec9cd131fdf5950b8aa9a2b3a9 (patch)
tree09812c4985205ee62d2d35b06cb54949e995b47d
parentdfdae021b93bb7d8d8d64ee9379e77c34709fd75 (diff)
downloadcpython-226fa562bff54dec9cd131fdf5950b8aa9a2b3a9.zip
cpython-226fa562bff54dec9cd131fdf5950b8aa9a2b3a9.tar.gz
cpython-226fa562bff54dec9cd131fdf5950b8aa9a2b3a9.tar.bz2
debugging: print ca certs loaded into default ctx
-rw-r--r--Lib/test/test_httplib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index e68555a..4c1f165 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', '/')