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

Method test_async_gen_exception_03

Lib/test/test_asyncgen.py:220–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 self.fail('StopAsyncIteration was not raised')
219
220 def test_async_gen_exception_03(self):
221 async def gen():
222 await awaitable()
223 yield 123
224 await awaitable(throw=True)
225 yield 456
226
227 with self.assertRaises(AwaitException):
228 to_list(gen())
229
230 def test_async_gen_exception_04(self):
231 async def gen():

Callers

nothing calls this directly

Calls 3

to_listFunction · 0.85
genFunction · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected