(self)
| 1192 | self.assertIsNone(result.__context__) |
| 1193 | |
| 1194 | def test_await_17(self): |
| 1195 | # See https://github.com/python/cpython/issues/131666 for details. |
| 1196 | class A: |
| 1197 | async def __anext__(self): |
| 1198 | raise StopAsyncIteration |
| 1199 | def __aiter__(self): |
| 1200 | return self |
| 1201 | |
| 1202 | with contextlib.closing(anext(A(), "a").__await__()) as anext_awaitable: |
| 1203 | self.assertRaises(TypeError, anext_awaitable.close, 1) |
| 1204 | |
| 1205 | def test_with_1(self): |
| 1206 | class Manager: |
nothing calls this directly
no test coverage detected