mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10443: Add the SSLContext.set_default_verify_paths() method.
This commit is contained in:
parent
b6d4ee5361
commit
664c2d1fc0
4 changed files with 29 additions and 0 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue