Skip to content

Commit 74b95b6

Browse files
[3.7] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-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 <[email protected]> Automerge-Triggered-By: @pitrou
1 parent 5c08bfe commit 74b95b6

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
@@ -2252,7 +2252,7 @@ with the :class:`Pool` class.
22522252
.. method:: successful()
22532253

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

22572257
The following example demonstrates the use of a pool::
22582258

0 commit comments

Comments
 (0)