Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py34 self.assertIs(await manager.__aenter__(), manager)
70 async def __aenter__(self): member in TestAbstractAsyncContextManager.test_structural_subclassing.ManagerFromScratch
84 __aenter__ = None variable in TestAbstractAsyncContextManager.test_structural_subclassing.NoneAenter
134 await ctx.__aenter__()
147 await ctx.__aenter__()
159 await ctx.__aenter__()
168 await ctx.__aenter__()
182 await ctx.__aenter__()
309 return self.run_coroutine(self.__aenter__())
379 async def __aenter__(self): member in TestAsyncExitStack.test_async_push.ExitCM
[all …]
Dtest_coroutines.py1166 async def __aenter__(self): member in CoroutineTest.test_with_1.Manager
1203 def __aenter__(self): member in CoroutineTest.test_with_2.CM
1248 async def __aenter__(self): member in CoroutineTest.test_with_5.CM
1263 def __aenter__(self): member in CoroutineTest.test_with_6.CM
1282 async def __aenter__(self): member in CoroutineTest.test_with_7.CM
1310 async def __aenter__(self): member in CoroutineTest.test_with_8.CM
1374 async def __aenter__(self): member in CoroutineTest.test_with_9.CM
1394 async def __aenter__(self): member in CoroutineTest.test_with_10.CM
1420 async def __aenter__(self): member in CoroutineTest.test_with_11.CM
1442 async def __aenter__(self): member in CoroutineTest.test_with_12.CM
[all …]
Dtest_sys_settrace.py30 async def __aenter__(self): member in asynctracecontext
Dtest_grammar.py1880 async def __aenter__(self): member in GrammarTests.test_async_with.manager
/external/python/cpython3/Lib/
Dcontextlib.py43 async def __aenter__(self): member in AbstractAsyncContextManager
173 async def __aenter__(self): member in _AsyncGeneratorContextManager
556 result = await _cm_type.__aenter__(cm)
601 async def __aenter__(self): member in AsyncExitStack
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py517 self.assertIsInstance(m_mock.__aenter__, AsyncMock)
546 self.assertIsInstance(m_mock.__aenter__, AsyncMock)
549 self.assertTrue(iscoroutinefunction(m_mock.__aenter__))
555 async def __aenter__(self, *args, **kwargs): pass member in AsyncContextManagerTest.WithAsyncContextManager
581 cm.__aenter__.return_value = response
604 self.assertTrue(cm_mock.__aenter__.called)
606 cm_mock.__aenter__.assert_awaited()
621 mock_instance.__aenter__.return_value = expected_result
644 mock_instance.__aenter__ = enter_coroutine
Dtestmagicmethods.py289 self.assertTrue(iscoroutinefunction(mock.__aenter__))
290 self.assertIsInstance(mock.__aenter__, AsyncMock)
315 self.assertTrue(iscoroutinefunction(mock.__aenter__))
316 self.assertIsInstance(mock.__aenter__, AsyncMock)
/external/python/cpython3/Lib/asyncio/
Dlocks.py13 async def __aenter__(self): member in _ContextManagerMixin
Devents.py196 async def __aenter__(self): member in AbstractServer
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b4.rst59 Improved error messages in 'async with' when ``__aenter__()`` or
D3.6.6rc1.rst74 Improved error messages in 'async with' when ``__aenter__()`` or
D3.9.0a3.rst91 ``async with`` statements by looking up the :meth:`__aenter__` special
D3.8.0a1.rst1419 Improved error messages in 'async with' when ``__aenter__()`` or
/external/python/cpython3/Doc/library/
Dcontextlib.rst35 :meth:`object.__aenter__` and :meth:`object.__aexit__`. A default
36 implementation for :meth:`object.__aenter__` is provided which returns
107 without needing to create a class or separate :meth:`__aenter__` and
Dunittest.mock-examples.rst301 :ref:`async-context-managers` through ``__aenter__`` and ``__aexit__``.
302 By default, ``__aenter__`` and ``__aexit__`` are ``AsyncMock`` instances that
306 ... async def __aenter__(self):
317 >>> mock_instance.__aenter__.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__``.
/external/python/cpython3/Doc/reference/
Dcompound_stmts.rst858 aenter = type(manager).__aenter__
874 See also :meth:`__aenter__` and :meth:`__aexit__` for details.
Ddatamodel.rst2777 suspend execution in its ``__aenter__`` and ``__aexit__`` methods.
2781 .. method:: object.__aenter__(self)
2794 async def __aenter__(self):
/external/python/cpython3/Tools/c-analyzer/
DTODO512 Python/ceval.c:_PyEval_EvalFrameDefault():PyId___aenter__ _Py_IDENTIFIER(__aenter__)
Dknown.tsv1013 Python/ceval.c _PyEval_EvalFrameDefault PyId___aenter__ variable _Py_IDENTIFIER(__aenter__)
/external/python/cpython3/Doc/
Dglossary.rst93 :keyword:`async with` statement by defining :meth:`__aenter__` and
/external/python/cpython3/Python/
Dceval.c3337 _Py_IDENTIFIER(__aenter__); in _PyEval_EvalFrameDefault()