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

Method test_func_8

Lib/test/test_coroutines.py:650–660  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

648 coro.close()
649
650 def test_func_8(self):
651 @types.coroutine
652 def bar():
653 return (yield from coro)
654
655 async def foo():
656 return 'spam'
657
658 coro = foo()
659 self.assertEqual(run_async(bar()), ([], 'spam'))
660 coro.close()
661
662 def test_func_9(self):
663 async def foo():

Callers

nothing calls this directly

Calls 5

run_asyncFunction · 0.85
fooFunction · 0.70
barFunction · 0.50
assertEqualMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected