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

Method test_func_11

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

dirFunction · 0.85
reprFunction · 0.85
assertInMethod · 0.80
funcFunction · 0.70
__await__Method · 0.45
closeMethod · 0.45

Tested by

no test coverage detected