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
0c6a3440
Commit
0c6a3440
authored
Mar 02, 2016
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncio, selectors: Update to the upstream version
parent
049205f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
Lib/selectors.py
Lib/selectors.py
+11
-2
Lib/test/test_asyncio/test_subprocess.py
Lib/test/test_asyncio/test_subprocess.py
+2
-1
No files found.
Lib/selectors.py
View file @
0c6a3440
...
...
@@ -43,9 +43,18 @@ def _fileobj_to_fd(fileobj):
SelectorKey
=
namedtuple
(
'SelectorKey'
,
[
'fileobj'
,
'fd'
,
'events'
,
'data'
])
"""Object used to associate a file object to its backing file descriptor,
selected event mask and attached data."""
SelectorKey
.
__doc__
=
"""SelectorKey(fileobj, fd, events, data)
Object used to associate a file object to its backing
file descriptor, selected event mask, and attached data.
"""
if
sys
.
version_info
>=
(
3
,
5
):
SelectorKey
.
fileobj
.
__doc__
=
'File object registered.'
SelectorKey
.
fd
.
__doc__
=
'Underlying file descriptor.'
SelectorKey
.
events
.
__doc__
=
'Events that must be waited for on this file object.'
SelectorKey
.
data
.
__doc__
=
(
'''Optional opaque data associated to this file object.
For example, this could be used to store a per-client session ID.'''
)
class
_SelectorMapping
(
Mapping
):
"""Mapping of file objects to selector keys."""
...
...
Lib/test/test_asyncio/test_subprocess.py
View file @
0c6a3440
...
...
@@ -427,9 +427,10 @@ class SubprocessMixin:
create
=
asyncio
.
create_subprocess_exec
(
sys
.
executable
,
'-c'
,
'pass'
,
loop
=
self
.
loop
)
with
support
.
check_no_resource_warning
(
self
)
:
with
warnings
.
catch_warnings
(
record
=
True
)
as
warns
:
with
self
.
assertRaises
(
exc
):
self
.
loop
.
run_until_complete
(
create
)
self
.
assertEqual
(
warns
,
[])
if
sys
.
platform
!=
'win32'
:
...
...
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