summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-04 02:05:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-04 02:05:01 (GMT)
commit1ea070e56185889f2e0360a3d0c03e35af744bf6 (patch)
tree0cdeddef265d39ae0df7783a4a816575c41303ef /Lib/test/test_ssl.py
parent8d2d5b9c598d319bc209667f3ae8d2d5186ac82e (diff)
downloadcpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.zip
cpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.tar.gz
cpython-1ea070e56185889f2e0360a3d0c03e35af744bf6.tar.bz2
test that keyfile can be None
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py2
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: