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
3a4586a9
Commit
3a4586a9
authored
Nov 08, 2013
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #18923: Update subprocess to use the new selectors module.
parent
2ce6c44a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
173 deletions
+75
-173
Lib/subprocess.py
Lib/subprocess.py
+69
-169
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+6
-4
No files found.
Lib/subprocess.py
View file @
3a4586a9
This diff is collapsed.
Click to expand it.
Lib/test/test_subprocess.py
View file @
3a4586a9
...
...
@@ -11,6 +11,7 @@ import errno
import
tempfile
import
time
import
re
import
selectors
import
sysconfig
import
warnings
import
select
...
...
@@ -2179,15 +2180,16 @@ class CommandTests(unittest.TestCase):
os
.
rmdir
(
dir
)
@
unittest
.
skipUnless
(
getattr
(
subprocess
,
'_has_poll'
,
False
),
"
poll system call not supported
"
)
@
unittest
.
skipUnless
(
hasattr
(
selectors
,
'PollSelector'
),
"
Test needs selectors.PollSelector
"
)
class
ProcessTestCaseNoPoll
(
ProcessTestCase
):
def
setUp
(
self
):
subprocess
.
_has_poll
=
False
self
.
orig_selector
=
subprocess
.
_PopenSelector
subprocess
.
_PopenSelector
=
selectors
.
SelectSelector
ProcessTestCase
.
setUp
(
self
)
def
tearDown
(
self
):
subprocess
.
_
has_poll
=
True
subprocess
.
_
PopenSelector
=
self
.
orig_selector
ProcessTestCase
.
tearDown
(
self
)
...
...
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