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

Method test_suspended

Lib/test/test_inspect/test_inspect.py:2915–2917  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2913 self.assertEqual(self._coroutinestate(), inspect.CORO_CREATED)
2914
2915 def test_suspended(self):
2916 self.coroutine.send(None)
2917 self.assertEqual(self._coroutinestate(), inspect.CORO_SUSPENDED)
2918
2919 def test_closed_after_exhaustion(self):
2920 while True:

Callers

nothing calls this directly

Calls 3

_coroutinestateMethod · 0.95
sendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected