a74bb24131
- Enable all the tests in %check - Add more patches to successfully build with openssl 1.1.1 (bsc#1113755) * openssl-111-middlebox-compat.patch * openssl-111-ssl_options.patch OBS-URL: https://build.opensuse.org/request/show/645303 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=235
14 lines
853 B
Diff
14 lines
853 B
Diff
Index: Python-2.7.15/Lib/test/test_ssl.py
|
|
===================================================================
|
|
--- Python-2.7.15.orig/Lib/test/test_ssl.py 2018-10-29 13:41:01.857624490 +0100
|
|
+++ Python-2.7.15/Lib/test/test_ssl.py 2018-10-29 14:04:59.674004321 +0100
|
|
@@ -776,7 +776,7 @@ class ContextTests(unittest.TestCase):
|
|
# OP_ALL | OP_NO_SSLv2 | OP_NO_SSLv3 is the default value
|
|
default = (ssl.OP_ALL | ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3)
|
|
# SSLContext also enables these by default
|
|
- default |= (ssl.OP_NO_COMPRESSION | ssl.OP_CIPHER_SERVER_PREFERENCE |
|
|
+ default |= (ssl.OP_NO_COMPRESSION |
|
|
ssl.OP_SINGLE_DH_USE | ssl.OP_SINGLE_ECDH_USE)
|
|
if not IS_LIBRESSL and ssl.OPENSSL_VERSION_INFO >= (1, 1, 1):
|
|
# define MIDDLEBOX constant, as python2.7 does not know about it
|