[Python-checkins] cpython: Fix for buggy test

antoine.pitrou python-checkins at python.org
Tue Dec 20 10:48:22 CET 2011


http://hg.python.org/cpython/rev/40f8e840bc24
changeset:   74092:40f8e840bc24
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Dec 20 10:47:42 2011 +0100
summary:
  Fix for buggy test

files:
  Lib/test/test_ssl.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -1835,6 +1835,7 @@
         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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list