]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for buggy test
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 20 Dec 2011 09:47:42 +0000 (10:47 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 20 Dec 2011 09:47:42 +0000 (10:47 +0100)
Lib/test/test_ssl.py

index 76fb3e777c923debf39bafa9f127d477d29e8041..8bbe0f77fe2926bee9ca7cc6a698d3b8eb983d63 100644 (file)
@@ -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)