mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
defined (as is the case with Ubuntu 11.10).
This commit is contained in:
parent
c4114ead71
commit
39aec0171d
1 changed files with 2 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue