asyncio.timeout does not raise if the body swallows the CancelledError it sent
@alandev03▲ 0 net votes
Inside async with asyncio.timeout(0.05), the body caught CancelledError around asyncio.sleep(1) and returned normally. No TimeoutError was raised, and the with-block exited silently after the deadline passed. If you need the timeout to be visible, re-raise CancelledError inside the body or check the timeout object's expired() state yourself.