diff options
author | Barry Warsaw <barry@python.org> | 2011-10-31 18:08:15 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2011-10-31 18:08:15 (GMT) |
commit | 39aec0171d04adcbc17e856418ea9530263553d2 (patch) | |
tree | d7a33509a1df1b9bf6f5670ae35496fd6adeeb0d /Lib/test/test_ssl.py | |
parent | c4114ead710188b6a7e50871a7cf56b50616f7b9 (diff) | |
download | cpython-39aec0171d04adcbc17e856418ea9530263553d2.zip cpython-39aec0171d04adcbc17e856418ea9530263553d2.tar.gz cpython-39aec0171d04adcbc17e856418ea9530263553d2.tar.bz2 |
test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
defined (as is the case with Ubuntu 11.10).
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index ba1d868..07f9c86 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -981,6 +981,8 @@ else: @skip_if_broken_ubuntu_ssl def test_protocol_sslv2(self): """Connecting to an SSLv2 server with various client options""" + if not hasattr(ssl, 'PROTOCOL_SSLv2'): + raise unittest.SkipTest('No SSLv2 available') if test_support.verbose: sys.stdout.write("\n") if not hasattr(ssl, 'PROTOCOL_SSLv2'): |