]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932)
authorAntoine <43954001+awecx@users.noreply.github.com>
Wed, 15 Jan 2020 20:12:42 +0000 (21:12 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jan 2020 20:12:41 +0000 (12:12 -0800)
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.

Doc/library/multiprocessing.rst

index 3c7b5cc1262097d410336e982ac747f1d89e71de..492f94c30017f0acc53ff20ab521c0fbf8dd2778 100644 (file)
@@ -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