We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cf273 commit 5b6d287Copy full SHA for 5b6d287
tests/asyncio/test_bidi_async.py
@@ -55,8 +55,7 @@ async def test_bounded_consume(self):
55
call.done.return_value = True
56
57
with pytest.raises(asyncio.TimeoutError):
58
- async with asyncio.timeout(1):
59
- await anext(gen_aiter)
+ await asyncio.wait_for(anext(gen_aiter), timeout=1)
60
61
assert items == [mock.sentinel.A, mock.sentinel.B]
62
@@ -114,8 +113,7 @@ async def test_exit_when_inactive_empty(self):
114
113
generator.call = call
115
116
117
118
- await anext(aiter(generator))
+ await asyncio.wait_for(anext(aiter(generator)), timeout=1)
119
120
async def test_exit_with_stop(self):
121
q = asyncio.Queue()
0 commit comments