summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-17 10:30:00 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-17 10:30:00 (GMT)
commitd0919507f9d51f5abd163494557e21e8dfadc367 (patch)
treeb839269a7df6b1196ec186611492f7bb4c8763ac /Lib
parentba6b430bd0732ee6ab731b3578d139827d24de80 (diff)
downloadcpython-d0919507f9d51f5abd163494557e21e8dfadc367.zip
cpython-d0919507f9d51f5abd163494557e21e8dfadc367.tar.gz
cpython-d0919507f9d51f5abd163494557e21e8dfadc367.tar.bz2
Try to fix buildbot failures with old OpenSSLs.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 5086cc3..60b417e 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -217,6 +217,7 @@ class ContextTests(unittest.TestCase):
with self.assertRaisesRegexp(ssl.SSLError, "PEM lib"):
ctx.load_cert_chain(EMPTYCERT)
# Separate key and cert
+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.load_cert_chain(ONLYCERT, ONLYKEY)
ctx.load_cert_chain(certfile=ONLYCERT, keyfile=ONLYKEY)
ctx.load_cert_chain(certfile=BYTES_ONLYCERT, keyfile=BYTES_ONLYKEY)
@@ -227,6 +228,7 @@ class ContextTests(unittest.TestCase):
with self.assertRaisesRegexp(ssl.SSLError, "PEM lib"):
ctx.load_cert_chain(certfile=ONLYKEY, keyfile=ONLYCERT)
# Mismatching key and cert
+ ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
with self.assertRaisesRegexp(ssl.SSLError, "key values mismatch"):
ctx.load_cert_chain(CERTFILE, ONLYKEY)