Skip to content
Permalink
Browse files

[3.7] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (G…

…H-17932) (GH-18016)

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 dc0284e)


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

Automerge-Triggered-By: @pitrou
  • Loading branch information
miss-islington committed Jan 15, 2020
1 parent 5c08bfe commit 74b95b6b320a739b75776c275d70deaa6330f5c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 Doc/library/multiprocessing.rst
@@ -2252,7 +2252,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.

The following example demonstrates the use of a pool::

0 comments on commit 74b95b6

Please sign in to comment.
You can’t perform that action at this time.