Fix for buggy test

This commit is contained in:
Antoine Pitrou 2011-12-20 10:47:42 +01:00
parent 8abdb8abd8
commit 8691bff6db

View 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)