[Python-checkins] cpython (2.7): test that keyfile can be None

benjamin.peterson python-checkins at python.org
Tue Nov 4 03:12:17 CET 2014


https://hg.python.org/cpython/rev/f9a72b3eca7c
changeset:   93378:f9a72b3eca7c
branch:      2.7
parent:      93368:515331e0ca0c
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Nov 03 21:05:01 2014 -0500
summary:
  test that keyfile can be None

files:
  Lib/test/test_ssl.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -766,7 +766,7 @@
     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(IOError) as cm:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list