diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-04 02:05:01 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-04 02:05:01 (GMT) |
commit | 1ea070e56185889f2e0360a3d0c03e35af744bf6 (patch) | |
tree | 0cdeddef265d39ae0df7783a4a816575c41303ef | |
parent | 8d2d5b9c598d319bc209667f3ae8d2d5186ac82e (diff) | |
download | cpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.zip cpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.tar.gz cpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.tar.bz2 |
test that keyfile can be None
-rw-r--r-- | 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 index f95d3e5..7f1f405 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -727,7 +727,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: |