diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-21 20:20:19 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-21 20:20:19 (GMT) |
commit | 72e1eae7bbad324115e37809ffd119e66184d560 (patch) | |
tree | b6dab834c2a1fdd27f2370ea814d8cb7e0bc431f /Lib/test | |
parent | 5e4a7d8dc7781a4c0dfacecdc4db0eb34beb1391 (diff) | |
download | cpython-72e1eae7bbad324115e37809ffd119e66184d560.zip cpython-72e1eae7bbad324115e37809ffd119e66184d560.tar.gz cpython-72e1eae7bbad324115e37809ffd119e66184d560.tar.bz2 |
Issue #25114: Fix test_asyncio
ssl.SSLContext() does not always disable compression. Fix unit test.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 24c3f1e..3488101 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -619,9 +619,6 @@ class EventLoopTestsMixin: self.assertEqual(peercert, client.get_extra_info('peercert')) - # Python disables compression to prevent CRIME attacks by default - self.assertIsNone(client.get_extra_info('compression')) - # test SSL cipher cipher = client.get_extra_info('cipher') self.assertIsInstance(cipher, tuple) @@ -639,6 +636,8 @@ class EventLoopTestsMixin: client.get_extra_info('cipher')) self.assertEqual(sslobj.getpeercert(), client.get_extra_info('peercert')) + self.assertEqual(sslobj.compression(), + client.get_extra_info('compression')) def _basetest_create_ssl_connection(self, connection_fut, check_sockname=True, |