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

Method test_func_13

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

Source from the content-addressed store, hash-verified

743 me.send(None)
744
745 def test_func_13(self):
746 async def g():
747 pass
748
749 coro = g()
750 with self.assertRaisesRegex(
751 TypeError,
752 "can't send non-None value to a just-started coroutine"):
753 coro.send('spam')
754
755 coro.close()
756
757 def test_func_14(self):
758 @types.coroutine

Callers

nothing calls this directly

Calls 4

assertRaisesRegexMethod · 0.80
gFunction · 0.70
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected