[New-bugs-announce] [issue23508] Document & unittest the subprocess.getstatusoutput() status value
Gregory P. Smith
report at bugs.python.org
Tue Feb 24 09:56:18 CET 2015
New submission from Gregory P. Smith:
The changes from http://bugs.python.org/issue10197 caused subprocess.getstatusoutput() to start returning a subprocess returncode style status for the child process instead of a POSIX style status.
before that bug's changes:
>>> getstatusoutput("exit 1")[0]
256
>>> getstatusoutput("kill -TERM $$")[0]
15
after that bug's changes:
>>> getstatusoutput("exit 1")[0]
1
>>> getstatusoutput("kill -TERM $$")[0]
-15
This behavior was entirely untested so it was missed when fixing issue10197.
Given the new behavior has shipped in a stable Python release starting with (I believe) 3.3.4 and all 3.4 releases I do not think it should be changed.
But we should document it with proper versionchanged notices.
----------
messages: 236482
nosy: gregory.p.smith
priority: normal
severity: normal
status: open
title: Document & unittest the subprocess.getstatusoutput() status value
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23508>
_______________________________________
More information about the New-bugs-announce
mailing list