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
b2209ccf
Commit
b2209ccf
authored
Oct 06, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert accidental inclusion of subprocess tests
parent
afbf90c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+0
-22
No files found.
Lib/test/test_subprocess.py
View file @
b2209ccf
...
...
@@ -165,28 +165,6 @@ class ProcessTestCase(BaseTestCase):
p
.
wait
()
self
.
assertEqual
(
p
.
stderr
,
None
)
@
unittest
.
skipIf
(
mswindows
,
"path not included in Windows message"
)
def
test_path_in_arg_not_found_message
(
self
):
# Check that the error message displays the path not found when
# args[0] is not found.
self
.
assertRaisesRegex
(
FileNotFoundError
,
"notfound_blahblah"
,
subprocess
.
Popen
,
[
"notfound_blahblah"
])
@
unittest
.
skipIf
(
mswindows
,
"path not displayed in Windows message"
)
def
test_path_in_executable_not_found_message
(
self
):
# Check that the error message displays the executable argument (and
# not args[0]) when the executable argument is not found
# (issue #16114).
# We call sys.exit() inside the code to prevent the test runner
# from hanging if the test fails and finds python.
self
.
assertRaisesRegex
(
FileNotFoundError
,
"notfound_blahblah"
,
subprocess
.
Popen
,
[
sys
.
executable
,
"-c"
,
"import sys; sys.exit(47)"
],
executable
=
"notfound_blahblah"
)
self
.
assertRaisesRegex
(
FileNotFoundError
,
"exenotfound_blahblah"
,
subprocess
.
Popen
,
[
"argnotfound_blahblah"
],
executable
=
"exenotfound_blahblah"
)
# For use in the test_cwd* tests below.
def
_normalize_cwd
(
self
,
cwd
):
# Normalize an expected cwd (for Tru64 support).
...
...
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