diff options
author | Antoine <43954001+awecx@users.noreply.github.com> | 2020-01-15 20:12:42 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-01-15 20:12:41 (GMT) |
commit | dc0284ee8f7a270b6005467f26d8e5773d76e959 (patch) | |
tree | 328d6828945d994ebf308178b43be65b42cf1922 /Doc | |
parent | e92d39303feb1d3b4194c6a8275b1fc63b2153b2 (diff) | |
download | cpython-dc0284ee8f7a270b6005467f26d8e5773d76e959.zip cpython-dc0284ee8f7a270b6005467f26d8e5773d76e959.tar.gz cpython-dc0284ee8f7a270b6005467f26d8e5773d76e959.tar.bz2 |
Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932)
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/multiprocessing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 3c7b5cc..492f94c 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 |