summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-17 20:29:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-17 20:29:42 (GMT)
commit664c2d1fc072d0cbd9b92a1cd5c9ac9ad7db326e (patch)
tree20115d0c90143e88464ca061a34fb9151e8ea50e /Lib
parentb6d4ee536174f2d467c195904c140025109242e7 (diff)
downloadcpython-664c2d1fc072d0cbd9b92a1cd5c9ac9ad7db326e.zip
cpython-664c2d1fc072d0cbd9b92a1cd5c9ac9ad7db326e.tar.gz
cpython-664c2d1fc072d0cbd9b92a1cd5c9ac9ad7db326e.tar.bz2
Issue #10443: Add the SSLContext.set_default_verify_paths() method.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index df9b987..087f964 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -412,6 +412,12 @@ class ContextTests(unittest.TestCase):
'cache_full': 0,
})
+ def test_set_default_verify_paths(self):
+ # There's not much we can do to test that it acts as expected,
+ # so just check it doesn't crash or raise an exception.
+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
+ ctx.set_default_verify_paths()
+
class NetworkedTests(unittest.TestCase):