(self)
| 2041 | gc_collect() |
| 2042 | |
| 2043 | def test_aclose_throw(self): |
| 2044 | async def gen(): |
| 2045 | return |
| 2046 | yield |
| 2047 | |
| 2048 | class MyException(Exception): |
| 2049 | pass |
| 2050 | |
| 2051 | g = gen() |
| 2052 | with self.assertRaises(MyException): |
| 2053 | g.aclose().throw(MyException) |
| 2054 | |
| 2055 | del g |
| 2056 | gc_collect() # does not warn unawaited |
| 2057 | |
| 2058 | def test_asend_send_already_running(self): |
| 2059 | @types.coroutine |
nothing calls this directly
no test coverage detected