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 nlevitt
Recipients nlevitt
Date 2019-06-06.22:16:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559859389.6.0.41932196936.issue37184@roundup.psfhosted.org>
In-reply-to
Content
Suggesting option to raise exception if process exits nonzero in `with subprocess.Popen(...):`

with subprocess.Popen('/bin/false'):
    pass

I made the mistake of assuming this construct would raise an exception (CalledProcessError). It would be nice if there were a way to do that.
History
Date User Action Args
2019-06-06 22:16:29nlevittsetrecipients: + nlevitt
2019-06-06 22:16:29nlevittsetmessageid: <1559859389.6.0.41932196936.issue37184@roundup.psfhosted.org>
2019-06-06 22:16:29nlevittlinkissue37184 messages
2019-06-06 22:16:29nlevittcreate