merge 3.4

This commit is contained in:
Benjamin Peterson 2014-11-03 21:06:07 -05:00
commit 98e1b9158c
1 changed files with 1 additions and 1 deletions

View File

@ -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: