Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
72e1eae7
Commit
72e1eae7
authored
Sep 21, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #25114: Fix test_asyncio
ssl.SSLContext() does not always disable compression. Fix unit test.
parent
5e4a7d8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_events.py
+2
-3
No files found.
Lib/test/test_asyncio/test_events.py
View file @
72e1eae7
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment