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

Method test_func_11

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

Source from the content-addressed store, hash-verified

724 aw.throw(ZeroDivisionError, ZeroDivisionError(), None)
725
726 def test_func_11(self):
727 async def func(): pass
728 coro = func()
729 # Test that PyCoro_Type and _PyCoroWrapper_Type types were properly
730 # initialized
731 self.assertIn('__await__', dir(coro))
732 self.assertIn('__iter__', dir(coro.__await__()))
733 self.assertIn('coroutine_wrapper', repr(coro.__await__()))
734 coro.close() # avoid RuntimeWarning
735
736 def test_func_12(self):
737 async def g():

Callers

nothing calls this directly

Calls 4

assertInMethod · 0.80
funcFunction · 0.70
__await__Method · 0.45
closeMethod · 0.45

Tested by

no test coverage detected