[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

Christian Häggström report at bugs.python.org
Fri Jul 22 12:18:35 CEST 2011


Christian Häggström <pajton at kalvdans.no-ip.org> added the comment:

I expect that 'ls' print the error message on its stderr, which would be redirected to stdout of the test Python program.

If I had been using stderr = subprocess.STDOUT, I can agree with you that both output streams would go to /dev/null.

----------

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


More information about the Python-bugs-list mailing list