MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_gen

Method run_gen

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

Source from the content-addressed store, hash-verified

1933 ([], {11: 12, 21: 22}))
1934
1935 async def run_gen():
1936 gen = (i + 1 async for i in f([10, 20]))
1937 return [g + 100 async for g in gen]
1938 self.assertEqual(
1939 run_async(run_gen()),
1940 ([], [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