[Python-checkins] [3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18015)

Miss Islington (bot) webhook-mailer at python.org
Wed Jan 15 15:19:28 EST 2020


https://github.com/python/cpython/commit/54abd28b2c4fab37f38e9d6c5e4120c9428a759e
commit: 54abd28b2c4fab37f38e9d6c5e4120c9428a759e
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-15T12:19:21-08:00
summary:

[3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18015)



Since 3.7 `successful` raises a `ValueError` as explained in the next text block from the documentation:

_Changed in version 3.7: If the result is not ready, ValueError is raised instead of AssertionError._

No issue associated with this PR.
Should be backported in 3.7 and 3.8.
(cherry picked from commit dc0284ee8f7a270b6005467f26d8e5773d76e959)


Co-authored-by: Antoine <43954001+awecx at users.noreply.github.com>

Automerge-Triggered-By: @pitrou

files:
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 3c7b5cc126209..492f94c30017f 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -2279,7 +2279,7 @@ with the :class:`Pool` class.
    .. method:: successful()
 
       Return whether the call completed without raising an exception.  Will
-      raise :exc:`AssertionError` if the result is not ready.
+      raise :exc:`ValueError` if the result is not ready.
 
       .. versionchanged:: 3.7
          If the result is not ready, :exc:`ValueError` is raised instead of



More information about the Python-checkins mailing list