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

Function test_async_for

extra_tests/snippets/syntax_async_comprehension.py:146–150  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

144
145def run_sync():
146 async def test_async_for(x):
147 i = 0
148 async for e in x:
149 assert e == i
150 i += 1
151
152 x = (i for i in range(5))
153 assert isinstance(x, GeneratorType)

Callers 1

run_syncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected