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

Method gen

Lib/test/test_asyncgen.py:180–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179 def test_async_gen_iteration_01(self):
180 async def gen():
181 await awaitable()
182 a = yield 123
183 self.assertIs(a, None)
184 await awaitable()
185 yield 456
186 await awaitable()
187 yield 789
188
189 self.assertEqual(to_list(gen()), [123, 456, 789])
190

Callers

nothing calls this directly

Calls 3

awaitableFunction · 0.85
assertWarnsRegexMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected