[issue12235] subprocess loses stderr information when _execute_child fails

R. David Murray report at bugs.python.org
Wed Jun 1 19:19:38 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Subprocess is throwing the correct exception, what it isn't doing is preserving stderr.  The stderr output in question is not coming from the *subprocess* (the process hasn't been created yet).  It would be nice if that stderr output could be added to the exception message, but that is not normally the way os errors are handled in python.

----------
nosy: +gregory.p.smith, r.david.murray
title: subprocess.check_output throws wrong exception if non executable -> subprocess loses stderr information when _execute_child fails
versions: +Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12235>
_______________________________________


More information about the Python-bugs-list mailing list