commit | 9de6be4e2ae605a1deb6fa72d5c5f66b07817e4c | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Wed Aug 26 10:15:35 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Aug 26 19:15:35 2020 +0200 |
tree | ef8050da8bc9d6bc04557ea72d04930b97b55a31 | |
parent | 1036ccb55de4abc70837cb46a72ddbb370b8fc94 [diff] |
bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) (GH-21964) Currently, if `asyncio.wait_for()` itself is cancelled it will always raise `CancelledError` regardless if the underlying task is still running. This is similar to a race with the timeout, which is handled already. (cherry picked from commit a2118a14627256197bddcf4fcecad4c264c1e39d) Co-authored-by: Elvis Pranskevichus <elvis@magic.io>