mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
merge 3.4
This commit is contained in:
commit
98e1b9158c
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ class ContextTests(unittest.TestCase):
|
||||||
def test_load_cert_chain(self):
|
def test_load_cert_chain(self):
|
||||||
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||||
# Combined key and cert in a single file
|
# Combined key and cert in a single file
|
||||||
ctx.load_cert_chain(CERTFILE)
|
ctx.load_cert_chain(CERTFILE, keyfile=None)
|
||||||
ctx.load_cert_chain(CERTFILE, keyfile=CERTFILE)
|
ctx.load_cert_chain(CERTFILE, keyfile=CERTFILE)
|
||||||
self.assertRaises(TypeError, ctx.load_cert_chain, keyfile=CERTFILE)
|
self.assertRaises(TypeError, ctx.load_cert_chain, keyfile=CERTFILE)
|
||||||
with self.assertRaises(OSError) as cm:
|
with self.assertRaises(OSError) as cm:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue