Home
last modified time | relevance | path

Searched refs:__aexit__ (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_contextlib_async.py32 async def __aexit__(self, *args): member in TestAbstractAsyncContextManager.test_enter.DefaultEnter
33 await super().__aexit__(*args)
74 async def __aexit__(self, exc_type, exc_value, traceback): member in TestAbstractAsyncContextManager.test_structural_subclassing.ManagerFromScratch
80 async def __aexit__(self, *args): member in TestAbstractAsyncContextManager.test_structural_subclassing.DefaultEnter
81 await super().__aexit__(*args)
91 __aexit__ = None variable in TestAbstractAsyncContextManager.test_structural_subclassing.NoneAexit
138 self.assertFalse(await ctx.__aexit__(TypeError, TypeError("foo"), None))
151 await ctx.__aexit__(TypeError, TypeError('foo'), None)
172 await ctx.__aexit__(None, None, None)
186 await ctx.__aexit__(RuntimeError, None, None)
[all …]
Dtest_coroutines.py1173 async def __aexit__(self, *args): member in CoroutineTest.test_with_1.Manager
1221 def __aexit__(self): member in CoroutineTest.test_with_3.CM
1259 async def __aexit__(self, *exc): member in CoroutineTest.test_with_5.CM
1274 def __aexit__(self, *e): member in CoroutineTest.test_with_6.CM
1293 def __aexit__(self, *e): member in CoroutineTest.test_with_7.CM
1321 def __aexit__(self, *e): member in CoroutineTest.test_with_8.CM
1385 async def __aexit__(self, *e): member in CoroutineTest.test_with_9.CM
1405 async def __aexit__(self, *e): member in CoroutineTest.test_with_10.CM
1431 async def __aexit__(self, *e): member in CoroutineTest.test_with_11.CM
1453 async def __aexit__(self, *e): member in CoroutineTest.test_with_12.CM
[all …]
Dtest_sys_settrace.py33 async def __aexit__(self, *exc_info): member in asynctracecontext
Dtest_grammar.py1984 async def __aexit__(self, *exc): member in GrammarTests.test_async_with.manager
/third_party/python/Lib/
Dcontextlib.py48 async def __aexit__(self, exc_type, exc_value, traceback): member in AbstractAsyncContextManager
203 async def __aexit__(self, typ, value, traceback): member in _AsyncGeneratorContextManager
365 async def __aexit__(self, *exc_info): member in aclosing
618 _exit = _cm_type.__aexit__
633 exit_method = _cb_type.__aexit__
656 await self.__aexit__(None, None, None)
667 async def __aexit__(self, *exc_details): member in AsyncExitStack
744 async def __aexit__(self, *excinfo): member in nullcontext
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py288 self.assertTrue(iscoroutinefunction(mock.__aexit__))
291 self.assertIsInstance(mock.__aexit__, AsyncMock)
314 self.assertTrue(iscoroutinefunction(mock.__aexit__))
317 self.assertIsInstance(mock.__aexit__, AsyncMock)
Dtestasync.py518 self.assertIsInstance(m_mock.__aexit__, AsyncMock)
547 self.assertIsInstance(m_mock.__aexit__, AsyncMock)
550 self.assertTrue(iscoroutinefunction(m_mock.__aexit__))
557 async def __aexit__(self, *args, **kwargs): pass member in AsyncContextManagerTest.WithAsyncContextManager
605 self.assertTrue(cm_mock.__aexit__.called)
607 cm_mock.__aexit__.assert_awaited()
645 mock_instance.__aexit__ = exit_coroutine
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_base_channel.py196 async def __aexit__(self, exc_type, exc_val, exc_tb): member in Channel
D_channel.py281 async def __aexit__(self, exc_type, exc_val, exc_tb): member in Channel
/third_party/grpc/src/python/grpcio/grpc/aio/
D_base_channel.py200 async def __aexit__(self, exc_type, exc_val, exc_tb): member in Channel
D_channel.py285 async def __aexit__(self, exc_type, exc_val, exc_tb): member in Channel
/third_party/python/Lib/asyncio/
Dlocks.py18 async def __aexit__(self, exc_type, exc, tb): member in _ContextManagerMixin
Devents.py199 async def __aexit__(self, *exc): member in AbstractServer
/third_party/python/Doc/library/
Dcontextlib.rst35 :meth:`object.__aenter__` and :meth:`object.__aexit__`. A default
37 ``self`` while :meth:`object.__aexit__` is an abstract method which by default
108 :meth:`__aexit__` methods. It must be applied to an :term:`asynchronous
448 async def __aexit__(self, *exc):
Dunittest.mock-examples.rst301 :ref:`async-context-managers` through ``__aenter__`` and ``__aexit__``.
302 By default, ``__aenter__`` and ``__aexit__`` are ``AsyncMock`` instances that
308 ... async def __aexit__(self, exc_type, exc, tb):
318 >>> mock_instance.__aexit__.assert_awaited_once()
Ddis.rst613 Resolves ``__aenter__`` and ``__aexit__`` from the object on top of the
614 stack. Pushes ``__aexit__`` and result of ``__aenter__()`` to the stack.
Dunittest.mock.rst2020 * Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and ``__aexit__``
2038 Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and ``__anext__``.
2102 * ``__aexit__``: ``False``
/third_party/python/Misc/NEWS.d/
D3.7.0b4.rst60 ``__aexit__()`` return non-awaitable object.
D3.6.6rc1.rst75 ``__aexit__()`` return non-awaitable object.
D3.9.0a3.rst92 method before the :meth:`__aexit__` special method when entering an
/third_party/python/Doc/reference/
Dcompound_stmts.rst1476 aexit = type(manager).__aexit__
1491 See also :meth:`__aenter__` and :meth:`__aexit__` for details.
Ddatamodel.rst2992 suspend execution in its ``__aenter__`` and ``__aexit__`` methods.
3001 .. method:: object.__aexit__(self, exc_type, exc_value, traceback)
3012 async def __aexit__(self, exc_type, exc, tb):
/third_party/python/Tools/c-analyzer/
DTODO508 Python/ceval.c:_PyEval_EvalFrameDefault():PyId___aexit__ _Py_IDENTIFIER(__aexit__)
/third_party/python/Doc/
Dglossary.rst96 :meth:`__aexit__` methods. Introduced by :pep:`492`.
/third_party/python/Python/
Dceval.c4032 _Py_IDENTIFIER(__aexit__); in _PyEval_EvalFrameDefault()

12