21381333 Python 2.7 regression test test_ssl fails
authorJohn Beck <John.Beck@Oracle.COM>
Mon, 03 Aug 2015 14:39:10 -0700
changeset 4733 87d0de8972c0
parent 4732 d072001cb0ea
child 4736 455a1830e5e8
21381333 Python 2.7 regression test test_ssl fails
components/python/python27/patches/26-sslv2.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/26-sslv2.patch	Mon Aug 03 14:39:10 2015 -0700
@@ -0,0 +1,15 @@
+This patch comes from in-house, to deal with SSLv2 no longer being supported.
+As it is Solaris-specific, it will not be passed upstream.
+
+--- Python-2.7.10/Lib/test/test_ssl.py.orig	2015-07-24 14:34:42.067600359 -0700
++++ Python-2.7.10/Lib/test/test_ssl.py	2015-08-03 11:48:02.934532909 -0700
[email protected]@ -24,6 +24,9 @@
+ ssl = support.import_module("ssl")
+ 
+ PROTOCOLS = sorted(ssl._PROTOCOL_NAMES)
++if hasattr(ssl, 'PROTOCOL_SSLv2'):
++    delattr(ssl, 'PROTOCOL_SSLv2')
++    PROTOCOLS.remove(0)
+ HOST = support.HOST
+ 
+ def data_file(*name):