Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py30 async def __aexit__(self, *args): member in TestAbstractAsyncContextManager.test_enter.DefaultEnter
31 await super().__aexit__(*args)
72 async def __aexit__(self, exc_type, exc_value, traceback): member in TestAbstractAsyncContextManager.test_structural_subclassing.ManagerFromScratch
78 async def __aexit__(self, *args): member in TestAbstractAsyncContextManager.test_structural_subclassing.DefaultEnter
79 await super().__aexit__(*args)
89 __aexit__ = None variable in TestAbstractAsyncContextManager.test_structural_subclassing.NoneAexit
136 self.assertFalse(await ctx.__aexit__(TypeError, TypeError("foo"), None))
149 await ctx.__aexit__(TypeError, TypeError('foo'), None)
170 await ctx.__aexit__(None, None, None)
184 await ctx.__aexit__(RuntimeError, None, None)
[all …]
Dtest_coroutines.py1171 async def __aexit__(self, *args): member in CoroutineTest.test_with_1.Manager
1217 def __aexit__(self): member in CoroutineTest.test_with_3.CM
1251 async def __aexit__(self, *exc): member in CoroutineTest.test_with_5.CM
1266 def __aexit__(self, *e): member in CoroutineTest.test_with_6.CM
1285 def __aexit__(self, *e): member in CoroutineTest.test_with_7.CM
1313 def __aexit__(self, *e): member in CoroutineTest.test_with_8.CM
1377 async def __aexit__(self, *e): member in CoroutineTest.test_with_9.CM
1397 async def __aexit__(self, *e): member in CoroutineTest.test_with_10.CM
1423 async def __aexit__(self, *e): member in CoroutineTest.test_with_11.CM
1445 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.py1882 async def __aexit__(self, *exc): member in GrammarTests.test_async_with.manager
/external/python/cpython3/Lib/
Dcontextlib.py48 async def __aexit__(self, exc_type, exc_value, traceback): member in AbstractAsyncContextManager
179 async def __aexit__(self, typ, value, traceback): member in _AsyncGeneratorContextManager
555 _exit = _cm_type.__aexit__
570 exit_method = _cb_type.__aexit__
593 await self.__aexit__(None, None, None)
604 async def __aexit__(self, *exc_details): member in AsyncExitStack
/external/python/cpython3/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
/external/python/cpython3/Lib/asyncio/
Dlocks.py19 async def __aexit__(self, exc_type, exc, tb): member in _ContextManagerMixin
Devents.py199 async def __aexit__(self, *exc): member in AbstractServer
/external/python/cpython3/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
D3.8.0a1.rst1420 ``__aexit__()`` return non-awaitable object.
/external/python/cpython3/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
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.rst2019 * Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and ``__aexit__``
2037 Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and ``__anext__``.
2101 * ``__aexit__``: ``False``
/external/python/cpython3/Doc/reference/
Dcompound_stmts.rst859 aexit = type(manager).__aexit__
874 See also :meth:`__aenter__` and :meth:`__aexit__` for details.
Ddatamodel.rst2777 suspend execution in its ``__aenter__`` and ``__aexit__`` methods.
2786 .. method:: object.__aexit__(self, exc_type, exc_value, traceback)
2797 async def __aexit__(self, exc_type, exc, tb):
/external/python/cpython3/Doc/
Dglossary.rst94 :meth:`__aexit__` methods. Introduced by :pep:`492`.
/external/python/cpython3/Tools/c-analyzer/
DTODO513 Python/ceval.c:_PyEval_EvalFrameDefault():PyId___aexit__ _Py_IDENTIFIER(__aexit__)
Dknown.tsv1014 Python/ceval.c _PyEval_EvalFrameDefault PyId___aexit__ variable _Py_IDENTIFIER(__aexit__)
/external/python/cpython3/Python/
Dceval.c3338 _Py_IDENTIFIER(__aexit__); in _PyEval_EvalFrameDefault()