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

Method test_send

Lib/test/test_asyncgen.py:673–678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671 self.assertEqual(result, "completed")
672
673 def test_send():
674 p = ait_class()
675 obj = anext(p, "completed")
676 with self.assertRaises(StopIteration):
677 with contextlib.closing(obj.__await__()) as g:
678 g.send(None)
679
680 test_send()
681

Callers

nothing calls this directly

Calls 5

anextFunction · 0.85
closingMethod · 0.80
assertRaisesMethod · 0.45
__await__Method · 0.45
sendMethod · 0.45

Tested by

no test coverage detected