From 1ea070e56185889f2e0360a3d0c03e35af744bf6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 3 Nov 2014 21:05:01 -0500 Subject: [PATCH] test that keyfile can be None --- Lib/test/test_ssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index f95d3e52a25..7f1f4050447 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: