(anext)
| 889 | g.throw(MyError()) |
| 890 | |
| 891 | def test3(anext): |
| 892 | agen = agenfn() |
| 893 | with contextlib.closing(anext(agen, "default").__await__()) as g: |
| 894 | self.assertEqual(g.send(None), 1) |
| 895 | g.close() |
| 896 | with self.assertRaisesRegex(RuntimeError, 'cannot reuse'): |
| 897 | self.assertEqual(g.send(None), 1) |
| 898 | |
| 899 | def test4(anext): |
| 900 | @types.coroutine |
nothing calls this directly
no test coverage detected