Lines Matching refs:async

16     async def test_timeout_basic(self):
18 async with asyncio.timeout(0.01) as cm:
22 async def test_timeout_at_basic(self):
27 async with asyncio.timeout_at(deadline) as cm:
32 async def test_nested_timeouts(self):
37 async with asyncio.timeout_at(deadline) as cm1:
40 async with asyncio.timeout_at(deadline) as cm2:
49 async def test_waiter_cancelled(self):
53 async with asyncio.timeout(0.01):
61 async def test_timeout_not_called(self):
64 async with asyncio.timeout(10) as cm:
73 async def test_timeout_disabled(self):
76 async with asyncio.timeout(None) as cm:
85 async def test_timeout_at_disabled(self):
88 async with asyncio.timeout_at(None) as cm:
97 async def test_timeout_zero(self):
101 async with asyncio.timeout(0) as cm:
109 async def test_timeout_zero_sleep_zero(self):
113 async with asyncio.timeout(0) as cm:
121 async def test_timeout_in_the_past_sleep_zero(self):
125 async with asyncio.timeout(-11) as cm:
133 async def test_foreign_exception_passed(self):
135 async with asyncio.timeout(0.01) as cm:
139 async def test_foreign_exception_on_timeout(self):
140 async def crash():
146 async with asyncio.timeout(0.01):
149 async def test_foreign_cancel_doesnt_timeout_if_not_expired(self):
151 async with asyncio.timeout(10) as cm:
156 async def test_outer_task_is_not_cancelled(self):
157 async def outer() -> None:
159 async with asyncio.timeout(0.001):
167 async def test_nested_timeouts_concurrent(self):
169 async with asyncio.timeout(0.002):
171 async with asyncio.timeout(0.1):
176 async def test_nested_timeouts_loop_busy(self):
184 async with asyncio.timeout(0.1): # (1)
186 async with asyncio.timeout(0.01): # (2)
195 async def test_reschedule(self):
201 async def f():
202 async with asyncio.timeout_at(deadline1) as cm:
221 async def test_repr_active(self):
222 async with asyncio.timeout(10) as cm:
225 async def test_repr_expired(self):
227 async with asyncio.timeout(0.01) as cm:
231 async def test_repr_finished(self):
232 async with asyncio.timeout(10) as cm:
237 async def test_repr_disabled(self):
238 async with asyncio.timeout(None) as cm:
241 async def test_nested_timeout_in_finally(self):
243 async with asyncio.timeout(0.01):
248 async with asyncio.timeout(0.01):
251 async def test_timeout_after_cancellation(self):
259 async with asyncio.timeout(0.0):
262 async def test_cancel_in_timeout_after_cancellation(self):
270 async with asyncio.timeout(1.0):
274 async def test_timeout_exception_cause (self):
276 async with asyncio.timeout(0):