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

Method run_gen

Lib/test/test_coroutines.py:1923–1925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1921 ([], {11: 12, 21: 22}))
1922
1923 async def run_gen():
1924 gen = (i + 1 async for i in f([10, 20]))
1925 return [g + 100 async for g in gen]
1926 self.assertEqual(
1927 run_async(run_gen()),
1928 ([], [111, 121]))

Callers

nothing calls this directly

Calls 5

assertIsInstanceMethod · 0.80
fFunction · 0.70
asendMethod · 0.45
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected