MCPcopy Index your code
hub / github.com/python/cpython / test_timeout_finished

Method test_timeout_finished

Lib/test/test_asyncio/test_timeouts.py:336–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 pass
335
336 async def test_timeout_finished(self):
337 async with asyncio.timeout(0.01) as cm:
338 pass
339 with self.assertRaisesRegex(RuntimeError, "finished"):
340 cm.reschedule(0.02)
341
342 async def test_timeout_expired(self):
343 with self.assertRaises(TimeoutError):

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
rescheduleMethod · 0.80
timeoutMethod · 0.45

Tested by

no test coverage detected