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
3207a030
Commit
3207a030
authored
May 27, 2014
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
parent
0a4d13e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/asyncio/selector_events.py
Lib/asyncio/selector_events.py
+1
-1
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_asyncio/test_selector_events.py
+4
-0
No files found.
Lib/asyncio/selector_events.py
View file @
3207a030
...
...
@@ -670,7 +670,7 @@ class _SelectorSslTransport(_SelectorTransport):
def
resume_reading
(
self
):
if
not
self
.
_paused
:
raise
(
'Not paused'
)
raise
RuntimeError
(
'Not paused'
)
self
.
_paused
=
False
if
self
.
_closing
:
return
...
...
Lib/test/test_asyncio/test_selector_events.py
View file @
3207a030
...
...
@@ -711,6 +711,8 @@ class SelectorSocketTransportTests(unittest.TestCase):
tr
.
resume_reading
()
self
.
assertFalse
(
tr
.
_paused
)
self
.
loop
.
assert_reader
(
7
,
tr
.
_read_ready
)
with
self
.
assertRaises
(
RuntimeError
):
tr
.
resume_reading
()
def
test_read_ready
(
self
):
transport
=
_SelectorSocketTransport
(
...
...
@@ -1125,6 +1127,8 @@ class SelectorSslTransportTests(unittest.TestCase):
tr
.
resume_reading
()
self
.
assertFalse
(
tr
.
_paused
)
self
.
loop
.
assert_reader
(
1
,
tr
.
_read_ready
)
with
self
.
assertRaises
(
RuntimeError
):
tr
.
resume_reading
()
def
test_write
(
self
):
transport
=
self
.
_make_one
()
...
...
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