Home
last modified time | relevance | path

Searched refs:ExitStack (Results 1 - 17 of 17) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_code_module.py5 from contextlib import ExitStack namespace
22 stack = ExitStack()
H A Dtest_readline.py4 from contextlib import ExitStack namespace
314 with ExitStack() as cleanup:
H A Dtest_pdb.py14 from contextlib import ExitStack, redirect_stdout namespace
2045 with ExitStack() as resources:
H A Dtest_contextlib.py776 # This test captures the current behavior of ExitStack so that we know
808 # Sanity check to make sure that ExitStack chaining matches
887 # Ensure ExitStack chaining matches actual nested `with` statements
962 # fix, ExitStack would try to fix it *again* and get into an
1075 exit_stack = ExitStack
H A Dtest_tracemalloc.py384 with contextlib.ExitStack() as stack:
H A Dtest_builtin.py22 from contextlib import ExitStack namespace
2019 self.resources = ExitStack()
H A Dtest_nntplib.py1602 with contextlib.ExitStack() as cleanup:
H A Dtest_zipfile.py2739 with contextlib.ExitStack() as stack:
3162 self.fixtures = contextlib.ExitStack()
/third_party/python/Lib/test/test_importlib/
H A Dfixtures.py61 self.fixtures = contextlib.ExitStack()
298 self.resources = contextlib.ExitStack()
/third_party/python/Lib/
H A Dgetpass.py45 with contextlib.ExitStack() as stack:
H A Dcontextlib.py12 "AsyncExitStack", "ContextDecorator", "ExitStack",
448 """A base class for ExitStack and AsyncExitStack."""
532 class ExitStack(_BaseExitStack, AbstractContextManager): class
536 with ExitStack() as stack:
H A Dsubprocess.py1289 with contextlib.ExitStack() as stack:
/third_party/python/Lib/distutils/tests/
H A Dtest_sysconfig.py110 with contextlib.ExitStack() as cm:
/third_party/python/Lib/test/test_zoneinfo/
H A Dtest_zoneinfo.py77 with contextlib.ExitStack() as stack:
1391 with contextlib.ExitStack() as stack:
/third_party/python/Lib/unittest/
H A Dmock.py1352 with contextlib.ExitStack() as exit_stack:
1550 self._exit_stack = contextlib.ExitStack()
/third_party/python/Lib/unittest/test/
H A Dtest_case.py1188 return contextlib.ExitStack()
/third_party/python/Lib/xml/etree/
H A DElementTree.py773 with contextlib.ExitStack() as stack:

Completed in 33 milliseconds