mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Co-authored-by: cui fliter <imcusg@gmail.com>
(cherry picked from commit e7ba6e9dbe
)
This commit is contained in:
parent
55faaa5c36
commit
84b023d243
10 changed files with 11 additions and 11 deletions
|
@ -249,8 +249,8 @@ class AsyncioWaitForTest(unittest.IsolatedAsyncioTestCase):
|
|||
await self._test_cancel_wait_for(60.0)
|
||||
|
||||
async def test_wait_for_cancel_suppressed(self):
|
||||
# GH-86296: Supressing CancelledError is discouraged
|
||||
# but if a task subpresses CancelledError and returns a value,
|
||||
# GH-86296: Suppressing CancelledError is discouraged
|
||||
# but if a task suppresses CancelledError and returns a value,
|
||||
# `wait_for` should return the value instead of raising CancelledError.
|
||||
# This is the same behavior as `asyncio.timeout`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue