This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients josh.r
Date 2014-10-14.21:09:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413320958.05.0.462062330084.issue22635@psf.upfronthosting.co.za>
In-reply-to
Content
(U) The examples for the function still show the return code in the form os.popen would produce (a program exiting with status 1 would return 256 as the status), but the new code from #10197 makes the status 1, not 256.

(U) This is a breaking change for code relying on what was already a legacy interface. Either the docs should call out the change, or the code needs to restore the previous behavior.

(U) Ultra simple repro:

>>> subprocess.getstatusoutput('python -c "exit(1)"')
Expected:
(256, '')
Actual:
(1, '')
History
Date User Action Args
2014-10-14 21:09:18josh.rsetrecipients: + josh.r
2014-10-14 21:09:18josh.rsetmessageid: <1413320958.05.0.462062330084.issue22635@psf.upfronthosting.co.za>
2014-10-14 21:09:18josh.rlinkissue22635 messages
2014-10-14 21:09:17josh.rcreate