summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-20 09:47:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-20 09:47:42 (GMT)
commit8691bff6db78a45fd89a385401ece64921867500 (patch)
treebd728a504e55396eba1f37ca4a587c2b855fad13 /Lib
parent8abdb8abd856f0dbbb3120428f0bf1d282007c32 (diff)
downloadcpython-8691bff6db78a45fd89a385401ece64921867500.zip
cpython-8691bff6db78a45fd89a385401ece64921867500.tar.gz
cpython-8691bff6db78a45fd89a385401ece64921867500.tar.bz2
Fix for buggy test
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 76fb3e7..8bbe0f7 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)