Home
last modified time | relevance | path

Searched refs:ExitStack (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython3/Lib/test/test_importlib/
Dtest_zip.py4 from contextlib import ExitStack
28 self.resources = ExitStack()
67 self.resources = ExitStack()
Dfixtures.py47 self.fixtures = contextlib.ExitStack()
173 self.fixtures = contextlib.ExitStack()
/external/python/cpython3/Doc/library/
Dcontextlib.rst354 .. class:: ExitStack()
363 with ExitStack() as stack:
432 Transfers the callback stack to a fresh :class:`ExitStack` instance
440 with ExitStack() as stack:
459 to :class:`ExitStack`, that supports combining both synchronous and
505 The primary use case for :class:`ExitStack` is the one given in the class
512 with ExitStack() as stack:
520 As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with`
531 method. By using :class:`ExitStack` the steps in the context management
534 stack = ExitStack()
[all …]
/external/python/cpython3/Lib/test/
Dtest_code_module.py5 from contextlib import ExitStack
21 stack = ExitStack()
Dtest_readline.py4 from contextlib import ExitStack
289 with ExitStack() as cleanup:
Dtest_pdb.py13 from contextlib import ExitStack
1495 with ExitStack() as resources:
Dtest_contextlib.py930 exit_stack = ExitStack
Dtest_tracemalloc.py350 with contextlib.ExitStack() as stack:
Dtest_builtin.py21 from contextlib import ExitStack
1759 self.resources = ExitStack()
Dtest_nntplib.py1585 with contextlib.ExitStack() as cleanup:
Dtest_zipfile.py2486 with contextlib.ExitStack() as stack:
2840 self.fixtures = contextlib.ExitStack()
/external/python/cpython3/Lib/
Dgetpass.py45 with contextlib.ExitStack() as stack:
Dcontextlib.py456 class ExitStack(_BaseExitStack, AbstractContextManager): class
Dsubprocess.py1210 with contextlib.ExitStack() as stack:
/external/tensorflow/tensorflow/python/framework/
Dtest_combinations.py363 with contextlib.ExitStack() as context_stack:
/external/python/cpython3/Lib/distutils/tests/
Dtest_sysconfig.py101 with contextlib.ExitStack() as cm:
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/
Dapi.py70 self._exit_stack = contextlib.ExitStack()
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a3.rst244 contextlib.ExitStack() and one of the exit stack generators catches and
D3.7.0a3.rst432 simpler and faster alternative to ExitStack() when handling optional context
D3.5.3rc1.rst1402 contextlib.ExitStack() and one of the exit stack generators catches and
D3.8.0a1.rst1787 An ExitStack is now used internally within subprocess.POpen to clean up pipe
5143 ``contextlib.ExitStack`` and ``contextlib.AsyncExitStack`` now use a method
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py77 with contextlib.ExitStack() as stack:
1391 with contextlib.ExitStack() as stack:
/external/python/cpython3/Lib/unittest/
Dmock.py1314 with contextlib.ExitStack() as exit_stack:
1500 self._exit_stack = contextlib.ExitStack()
/external/python/cpython3/Lib/xml/etree/
DElementTree.py780 with contextlib.ExitStack() as stack:
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1154 return contextlib.ExitStack()

12