]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-111693: Propagate correct asyncio.CancelledError instance out of asyncio.Condition...
authorKristján Valur Jónsson <sweskman@gmail.com>
Mon, 8 Jan 2024 19:57:48 +0000 (19:57 +0000)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 19:57:48 +0000 (11:57 -0800)
commit52161781a6134a4b846500ad68004fe9027a233c
treeedde409239812f1cfcfa1b0de1bc4d57ffcbf22c
parentc6ca562138a0916192f9c3100cae678c616aed29
GH-111693: Propagate correct asyncio.CancelledError instance out of asyncio.Condition.wait() (#111694)

Also fix a race condition in `asyncio.Semaphore.acquire()` when cancelled.
Lib/asyncio/futures.py
Lib/asyncio/locks.py
Lib/test/test_asyncio/test_locks.py
Misc/NEWS.d/next/Library/2024-01-07-13-36-03.gh-issue-111693.xN2LuL.rst [new file with mode: 0644]