Home
last modified time | relevance | path

Searched refs:__exit__ (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/external/python/cpython2/Tools/pybench/
DWith.py13 def __exit__(self, exc, val, tb): member in WithFinally.ContextManager
59 def __exit__(self): member in TryFinally.ContextManager
71 finally: cm.__exit__()
75 finally: cm.__exit__()
79 finally: cm.__exit__()
83 finally: cm.__exit__()
87 finally: cm.__exit__()
91 finally: cm.__exit__()
95 finally: cm.__exit__()
99 finally: cm.__exit__()
[all …]
/external/python/cpython2/Lib/test/
Dtest_with.py25 def __exit__(self, type, value, traceback): member in MockContextManager
28 return GeneratorContextManager.__exit__(self, type,
70 if not self.__exit__(*sys.exc_info()):
74 def __exit__(self, *exc_info): member in Nested
81 if mgr.__exit__(*ex):
101 def __exit__(self, *exc_info): member in MockNested
104 return Nested.__exit__(self, *exc_info)
115 def __exit__(self, type, value, traceback): member in FailureTestCase.testEnterAttributeError.LacksEnter
164 def __exit__(self, *args): member in FailureTestCase.testEnterThrows.EnterThrows
179 def __exit__(self, *args): member in FailureTestCase.testExitThrows.ExitThrows
[all …]
/external/python/cpython3/Lib/test/
Dtest_with.py24 def __exit__(self, type, value, traceback): member in MockContextManager
27 return _GeneratorContextManager.__exit__(self, type,
69 if not self.__exit__(*sys.exc_info()):
73 def __exit__(self, *exc_info): member in Nested
80 if mgr.__exit__(*ex):
100 def __exit__(self, *exc_info): member in MockNested
103 return Nested.__exit__(self, *exc_info)
114 def __exit__(self, type, value, traceback): member in FailureTestCase.testEnterAttributeError1.LacksEnter
167 def __exit__(self, *args): member in FailureTestCase.testEnterThrows.EnterThrows
182 def __exit__(self, *args): member in FailureTestCase.testExitThrows.ExitThrows
[all …]
Dtest_contextlib.py17 def __exit__(self, *args): member in TestAbstractContextManager.test_enter.DefaultEnter
18 super().__exit__(*args)
34 def __exit__(self, exc_type, exc_value, traceback): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch
40 def __exit__(self, *args): member in TestAbstractContextManager.test_structural_subclassing.DefaultEnter
41 super().__exit__(*args)
51 __exit__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoExit
95 self.assertFalse(ctx.__exit__(TypeError, TypeError("foo"), None))
107 RuntimeError, ctx.__exit__, TypeError, TypeError("foo"), None
390 def __exit__(self, *exc): member in mycontext
490 def __exit__(self, *exc): member in TestContextDecorator.test_typo_enter.mycontext
[all …]
/external/python/cpython3/Lib/
Dcontextlib.py26 def __exit__(self, exc_type, exc_value, traceback): member in AbstractContextManager
121 def __exit__(self, type, value, traceback): member in _GeneratorContextManager
302 def __exit__(self, *exc_info): member in closing
320 def __exit__(self, exctype, excinst, exctb): member in _RedirectStream
363 def __exit__(self, exctype, excinst, exctb): member in suppress
411 exit_method = _cb_type.__exit__
428 _exit = _cm_type.__exit__
470 def __exit__(self, *exc_details): member in ExitStack
521 self.__exit__(None, None, None)
675 def __exit__(self, *excinfo): member in nullcontext
/external/tensorflow/tensorflow/python/autograph/core/
Dfunction_wrappers.py83 def __exit__(self, exc_type, exc_val, exc_tb): member in FunctionScope
85 self.autograph_ctx.__exit__(exc_type, exc_val, exc_tb)
87 self.name_scope.__exit__(exc_type, exc_val, exc_tb)
89 self.autodeps_scope.__exit__(exc_type, exc_val, exc_tb)
Dag_ctx.py78 def __exit__(self, unused_type, unused_value, unused_traceback): member in ControlStatusCtx
89 def __exit__(self, unused_type, unused_value, unused_traceback): member in NullCtx
/external/python/cpython2/Lib/
Dcontextlib.py21 def __exit__(self, type, value, traceback): member in GeneratorContextManager
110 exit = mgr.__exit__
153 def __exit__(self, *exc_info): member in closing
/external/skia/infra/bots/
Dutils.py35 def __exit__(self, t, v, tb): member in print_timings
53 def __exit__(self, t, v, tb): member in tmp_dir
73 def __exit__(self, t, v, tb): member in chdir
110 def __exit__(self, exc_type, _value, _traceback): member in git_branch
/external/skqp/infra/bots/
Dutils.py33 def __exit__(self, t, v, tb): member in print_timings
51 def __exit__(self, t, v, tb): member in tmp_dir
71 def __exit__(self, t, v, tb): member in chdir
108 def __exit__(self, exc_type, _value, _traceback): member in git_branch
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcontextlib_ext.py17 def __exit__(self, exc_type, exc_val, exc_tb): member in _OptionalContextManager
19 return self._manager.__exit__(exc_type, exc_val, exc_tb)
/external/python/mock/mock/tests/
Dtestwith.py75 mock.__exit__ = Mock()
76 mock.__exit__.return_value = False
81 mock.__exit__.assert_called_with(None, None, None)
91 self.assertTrue(mock.__exit__.called)
166 call().__exit__(None, None, None)]
180 call().__exit__(None, None, None),
182 call().__exit__(None, None, None)]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py70 mock.__exit__ = Mock()
71 mock.__exit__.return_value = False
76 mock.__exit__.assert_called_with(None, None, None)
86 self.assertTrue(mock.__exit__.called)
161 call().__exit__(None, None, None)]
175 call().__exit__(None, None, None),
177 call().__exit__(None, None, None)]
/external/tensorflow/tensorflow/python/distribute/parallel_device/
Dparallel_device.py167 def __exit__(self, typ, exc, tb): member in ParallelDevice
168 self._device_scope.__exit__(typ, exc, tb)
169 self._saving_scope.__exit__(typ, exc, tb)
/external/skqp/tools/skpbench/
D_hardware_android.py60 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid
61 Hardware.__exit__(self, exception_type, exception_value, traceback)
/external/autotest/client/cros/networking/
Dapmanager_xmlrpc_server.py36 def __exit__(self, exception, value, traceback): member in ApmanagerXmlRpcDelegate
37 super(ApmanagerXmlRpcDelegate, self).__exit__(exception, value, traceback)
Dshill_context.py78 def __exit__(self, exc_type, exc_value, traceback): member in AllowedTechnologiesContext
161 def __exit__(self, exc_type, exc_value, traceback): member in ServiceAutoConnectContext
231 def __exit__(self, exception, value, traceback): member in StaticIPContext
/external/tensorflow/tensorflow/python/framework/experimental/
Dtape.py55 def __exit__(self, typ, value, traceback): member in GradientTape
56 self._ctx_manager.__exit__(typ, value, traceback)
/external/python/cpython2/Doc/library/
Dcontextlib.rst25 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
83 Note that if the :meth:`__exit__` method of one of the nested context managers
86 :meth:`__exit__` method of one of the nested managers raises an exception, any
88 :meth:`__exit__` methods of any remaining outer context managers. In general,
89 :meth:`__exit__` methods should avoid raising exceptions, and in particular they
101 raises an exception that is caught and suppressed by the :meth:`__exit__` method
/external/python/cpython3/Lib/multiprocessing/dummy/
Dconnection.py36 def __exit__(self, exc_type, exc_value, exc_tb): member in Listener
74 def __exit__(self, exc_type, exc_value, exc_tb): member in Connection
/external/tensorflow/tensorflow/python/framework/
Dmemory_checker.py85 def __exit__(self, exc_type, exc_value, traceback): member in MemoryChecker
88 self._trace_me.__exit__(exc_type, exc_value, traceback)
/external/autotest/client/cros/cellular/
Dtest_environment.py130 self.__exit__(*sys.exc_info())
133 self.__exit__(*sys.exc_info())
137 def __exit__(self, exception, value, traceback): member in CellularTestEnvironment
141 return self._nested.__exit__(exception, value, traceback)
/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py91 def __exit__(self, *args): member in SemLock
92 return self._semlock.__exit__(*args)
217 def __exit__(self, *args): member in Condition
218 return self._lock.__exit__(*args)
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_temp_file.py78 def __exit__(self, type, value, traceback): member in DeviceTempFile
120 def __exit__(self, exc_type, exc_val, exc_tb): member in NamedDeviceTemporaryDirectory
/external/skia/tools/skpbench/
D_hardware_android.py71 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid
72 Hardware.__exit__(self, exception_type, exception_value, traceback)

12345678910>>...17