mirror of https://github.com/python/cpython
merge 3.4
This commit is contained in:
commit
98e1b9158c
|
@ -811,7 +811,7 @@ class ContextTests(unittest.TestCase):
|
|||
def test_load_cert_chain(self):
|
||||
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
# 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)
|
||||
self.assertRaises(TypeError, ctx.load_cert_chain, keyfile=CERTFILE)
|
||||
with self.assertRaises(OSError) as cm:
|
||||
|
|
Loading…
Reference in New Issue