]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96037: Always insert TimeoutError when exit an expired asyncio.timeout() block...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 10 Jan 2024 10:50:31 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 10:50:31 +0000 (12:50 +0200)
commitaef4a1203c06efde8505aefc9cf994e9a23f398d
tree006ea6c1226b329803c5649eb00b1a6ac1316bf5
parentab0ad62038317a3d15099c23d2b0f03bee9f8fa7
gh-96037: Always insert TimeoutError when exit an expired asyncio.timeout() block (GH-113819)

If other exception was raised during exiting an expired
asyncio.timeout() block, insert TimeoutError in the exception context
just above the CancelledError.
Lib/asyncio/timeouts.py
Lib/test/test_asyncio/test_timeouts.py
Misc/NEWS.d/next/Library/2024-01-08-19-38-42.gh-issue-96037.Yr2Y1C.rst [new file with mode: 0644]