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

Method test_func_2

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

Source from the content-addressed store, hash-verified

547 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
548
549 def test_func_2(self):
550 async def foo():
551 raise StopIteration
552
553 with self.assertRaisesRegex(
554 RuntimeError, "coroutine raised StopIteration"):
555
556 run_async(foo())
557
558 def test_func_3(self):
559 async def foo():

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.85
assertRaisesRegexMethod · 0.80
fooFunction · 0.70

Tested by

no test coverage detected