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

Method test_timeout_disabled

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

Source from the content-addressed store, hash-verified

67 self.assertGreater(cm.when(), t1)
68
69 async def test_timeout_disabled(self):
70 async with asyncio.timeout(None) as cm:
71 await asyncio.sleep(0.01)
72
73 self.assertFalse(cm.expired())
74 self.assertIsNone(cm.when())
75
76 async def test_timeout_at_disabled(self):
77 async with asyncio.timeout_at(None) as cm:

Callers

nothing calls this directly

Calls 6

assertFalseMethod · 0.80
expiredMethod · 0.80
assertIsNoneMethod · 0.80
timeoutMethod · 0.45
sleepMethod · 0.45
whenMethod · 0.45

Tested by

no test coverage detected