(self)
| 1200 | self.assertIsNone(result.__context__) |
| 1201 | |
| 1202 | def test_await_17(self): |
| 1203 | # See https://github.com/python/cpython/issues/131666 for details. |
| 1204 | class A: |
| 1205 | async def __anext__(self): |
| 1206 | raise StopAsyncIteration |
| 1207 | def __aiter__(self): |
| 1208 | return self |
| 1209 | |
| 1210 | with contextlib.closing(anext(A(), "a").__await__()) as anext_awaitable: |
| 1211 | self.assertRaises(TypeError, anext_awaitable.close, 1) |
| 1212 | |
| 1213 | def test_with_1(self): |
| 1214 | class Manager: |
nothing calls this directly
no test coverage detected