python/types-setuptools: update to 75.5.0.20241119
[oi-userland.git] / components / python / python27 / patches / 12-test_ssl-skip-SSLv2-test.patch
blobb2bfcfe49b74d1c98d866f803cd79d54ed8a8aef
1 --- Python-2.7.16/Lib/test/test_ssl.py 2019-03-02 19:17:42.000000000 +0000
2 +++ Python-2.7.16/Lib/test/test_ssl.py.new 2019-03-13 18:51:42.771023876 +0000
3 @@ -144,12 +144,13 @@ def asn1time(cert_time):
4 return cert_time
6 # Issue #9415: Ubuntu hijacks their OpenSSL and forcefully disables SSLv2
7 +# So does OpenIndiana, see components/library/openssl/openssl-1.0.2/patches/041_rm_sslv2_v3.patch
8 def skip_if_broken_ubuntu_ssl(func):
9 if hasattr(ssl, 'PROTOCOL_SSLv2'):
10 @functools.wraps(func)
11 def f(*args, **kwargs):
12 try:
13 - ssl.SSLContext(ssl.PROTOCOL_SSLv2)
14 + raise unittest.SkipTest("OpenIndiana patched-out SSLv2")
15 except ssl.SSLError:
16 if (ssl.OPENSSL_VERSION_INFO == (0, 9, 8, 15, 15) and
17 platform.linux_distribution() == ('debian', 'squeeze/sid', '')):