Skip to content

Commit 54abd28

Browse files
[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 dc0284e) Co-authored-by: Antoine <[email protected]> Automerge-Triggered-By: @pitrou
1 parent 9213577 commit 54abd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/multiprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ with the :class:`Pool` class.
22792279
.. method:: successful()
22802280

22812281
Return whether the call completed without raising an exception. Will
2282-
raise :exc:`AssertionError` if the result is not ready.
2282+
raise :exc:`ValueError` if the result is not ready.
22832283

22842284
.. versionchanged:: 3.7
22852285
If the result is not ready, :exc:`ValueError` is raised instead of

0 commit comments

Comments
 (0)