(self)
| 58 | self.assertTrue(cancelled) |
| 59 | |
| 60 | async def test_timeout_not_called(self): |
| 61 | loop = asyncio.get_running_loop() |
| 62 | async with asyncio.timeout(10) as cm: |
| 63 | await asyncio.sleep(0.01) |
| 64 | t1 = loop.time() |
| 65 | |
| 66 | self.assertFalse(cm.expired()) |
| 67 | self.assertGreater(cm.when(), t1) |
| 68 | |
| 69 | async def test_timeout_disabled(self): |
| 70 | async with asyncio.timeout(None) as cm: |
nothing calls this directly
no test coverage detected