From: Antoine Pitrou Date: Tue, 20 Dec 2011 09:47:42 +0000 (+0100) Subject: Fix for buggy test X-Git-Tag: v3.3.0a1~551 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8691bff6db78a45fd89a385401ece64921867500;p=thirdparty%2FPython%2Fcpython.git Fix for buggy test --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 76fb3e777c92..8bbe0f77fe29 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1835,6 +1835,7 @@ else: def test_compression_disabled(self): context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) context.load_cert_chain(CERTFILE) + context.options |= ssl.OP_NO_COMPRESSION stats = server_params_test(context, context, chatty=True, connectionchatty=True) self.assertIs(stats['compression'], None)