[Python-checkins] cpython (3.4): 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/b9d9e7762783
changeset:   93376:b9d9e7762783
branch:      3.4
parent:      93373:a716afa8e23f
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
@@ -727,7 +727,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(OSError) as cm:

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


More information about the Python-checkins mailing list