[Python-checkins] r81246 - python/branches/py3k/Lib/test/test_ssl.py
antoine.pitrou
python-checkins at python.org
Mon May 17 01:46:27 CEST 2010
Author: antoine.pitrou
Date: Mon May 17 01:46:26 2010
New Revision: 81246
Log:
"xyzzy" is not a silly enough name for some OpenSSL versions to report an error
Modified:
python/branches/py3k/Lib/test/test_ssl.py
Modified: python/branches/py3k/Lib/test/test_ssl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ssl.py (original)
+++ python/branches/py3k/Lib/test/test_ssl.py Mon May 17 01:46:26 2010
@@ -143,7 +143,7 @@
# Error checking can happen at instantiation or when connecting
with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"):
s = ssl.wrap_socket(socket.socket(socket.AF_INET),
- cert_reqs=ssl.CERT_NONE, ciphers="xyzzy")
+ cert_reqs=ssl.CERT_NONE, ciphers="^$:,;?*'dorothyx")
s.connect(remote)
@support.cpython_only
@@ -187,7 +187,7 @@
ctx.set_ciphers("ALL")
ctx.set_ciphers("DEFAULT")
with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"):
- ctx.set_ciphers("xyzzy")
+ ctx.set_ciphers("^$:,;?*'dorothyx")
def test_verify(self):
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
More information about the Python-checkins
mailing list