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)
commit04439fd5ee0dde080af9c4fe5c1e178c3b90169e (patch)
tree569c0e00f2a22490cc881c3d812e33ba40243872 /Lib/test/test_ssl.py
parent186c5f07e65c95b23087abe33670efa95eca497b (diff)
downloadcpython-04439fd5ee0dde080af9c4fe5c1e178c3b90169e.zip
cpython-04439fd5ee0dde080af9c4fe5c1e178c3b90169e.tar.gz
cpython-04439fd5ee0dde080af9c4fe5c1e178c3b90169e.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 825b986..0c9e24d 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -766,7 +766,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(IOError) as cm: