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

Method coro

Lib/test/test_asyncio/test_pep492.py:165–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 return gen()
164
165 async def coro():
166 wrapper = func()
167 self.assertIsInstance(wrapper, types._GeneratorWrapper)
168 return await wrapper
169
170 data = self.loop.run_until_complete(coro())
171 self.assertEqual(data, 'spam')

Callers

nothing calls this directly

Calls 2

assertIsInstanceMethod · 0.80
funcFunction · 0.70

Tested by

no test coverage detected