Commits

Anonymous committed 40f8e84

Fix for buggy test

  • Participants
  • Parent commits 20b52be

Comments (0)

Files changed (1)

File Lib/test/test_ssl.py

         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)