[Python-checkins] gh-87801: Add run() to subprocess.CalledProcessError description (GH-91628)

miss-islington webhook-mailer at python.org
Sat Apr 30 17:51:58 EDT 2022


https://github.com/python/cpython/commit/335aae195093d89d11f4379d36c663233abead61
commit: 335aae195093d89d11f4379d36c663233abead61
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-04-30T14:51:45-07:00
summary:

gh-87801: Add run() to subprocess.CalledProcessError description (GH-91628)

(cherry picked from commit 567be058b403db9689af45bf831d4c732c8b1105)

Co-authored-by: slateny <46876382+slateny at users.noreply.github.com>

files:
M Doc/library/subprocess.rst

diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index ab9f1d88a0fc2..4d3312077bbd0 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -214,7 +214,9 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
 .. exception:: CalledProcessError
 
     Subclass of :exc:`SubprocessError`, raised when a process run by
-    :func:`check_call` or :func:`check_output` returns a non-zero exit status.
+    :func:`check_call`, :func:`check_output`, or :func:`run` (with ``check=True``)
+    returns a non-zero exit status.
+
 
     .. attribute:: returncode
 



More information about the Python-checkins mailing list