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

Method test_async_for

Lib/test/test_monitoring.py:1848–1865  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1846 self.check_branches(foo)
1847
1848 def test_async_for(self):
1849
1850 async def gen():
1851 yield 2
1852 yield 3
1853
1854 async def foo():
1855 async for y in gen():
1856 2
1857 pass # line 3
1858
1859 def func():
1860 try:
1861 foo().send(None)
1862 except StopIteration:
1863 pass
1864
1865 self.check_branches(func, foo)
1866
1867
1868class TestLoadSuperAttr(CheckEvents):

Callers

nothing calls this directly

Calls 1

check_branchesMethod · 0.95

Tested by

no test coverage detected