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