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
5f780400
Commit
5f780400
authored
Nov 20, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add filename to ENOENT message #4925
parent
c610e3e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/subprocess.py
Lib/subprocess.py
+2
-0
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+1
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/subprocess.py
View file @
5f780400
...
...
@@ -1255,6 +1255,8 @@ class Popen(object):
errno
=
int
(
hex_errno
,
16
)
if
errno
!=
0
:
err_msg
=
os
.
strerror
(
errno
)
if
errno
==
errno
.
ENOENT
:
err_msg
+=
': '
+
repr
(
args
[
0
])
raise
child_exception_type
(
errno
,
err_msg
)
raise
child_exception_type
(
err_msg
)
...
...
Lib/test/test_subprocess.py
View file @
5f780400
...
...
@@ -666,6 +666,7 @@ class POSIXProcessTestCase(BaseTestCase):
# string and instead capture the exception that we want to see
# below for comparison.
desired_exception
=
e
desired_exception
.
strerror
+=
': '
+
repr
(
sys
.
executable
)
else
:
self
.
fail
(
"chdir to nonexistant directory %s succeeded."
%
nonexistent_dir
)
...
...
Misc/ACKS
View file @
5f780400
...
...
@@ -726,6 +726,7 @@ Ilya Sandler
Mark Sapiro
Ty Sarna
Ben Sayer
Andrew Schaaf
Michael Scharf
Andreas Schawo
Neil Schemenauer
...
...
Misc/NEWS
View file @
5f780400
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1?
Core and Builtins
-----------------
- Issue #4925: Add filename to error message when executable can't be found in
subprocess.
- Issue #1574217: isinstance now catches only AttributeError, rather than
masking all errors.
...
...
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