(anext)
| 881 | self.assertEqual(err.value, "default") |
| 882 | |
| 883 | def test2(anext): |
| 884 | agen = agenfn() |
| 885 | with contextlib.closing(anext(agen, "default").__await__()) as g: |
| 886 | self.assertEqual(g.send(None), 1) |
| 887 | self.assertEqual(g.throw(MyError()), 2) |
| 888 | with self.assertRaises(MyError): |
| 889 | g.throw(MyError()) |
| 890 | |
| 891 | def test3(anext): |
| 892 | agen = agenfn() |
nothing calls this directly
no test coverage detected