Home
last modified time | relevance | path

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

1234567

/third_party/python/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.py18 def __exit__(self, *args): member in TestAbstractContextManager.test_enter.DefaultEnter
19 super().__exit__(*args)
35 def __exit__(self, exc_type, exc_value, traceback): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch
41 def __exit__(self, *args): member in TestAbstractContextManager.test_structural_subclassing.DefaultEnter
42 super().__exit__(*args)
52 __exit__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoExit
96 self.assertFalse(ctx.__exit__(TypeError, TypeError("foo"), None))
108 RuntimeError, ctx.__exit__, TypeError, TypeError("foo"), None
396 def __exit__(self, *exc): member in mycontext
496 def __exit__(self, *exc): member in TestContextDecorator.test_typo_enter.mycontext
[all …]
Dtest_global.py17 self._warnings_manager.__exit__(None, None, None)
59 unittest.addModuleCleanup(cm.__exit__, None, None, None)
Dtest_file.py116 self.f.__exit__(None, None, None)
125 self.assertEqual(self.f.__exit__(None, None, None), None)
130 self.assertEqual(self.f.__exit__(*sys.exc_info()), None)
/third_party/python/Lib/
Dcontextlib.py26 def __exit__(self, exc_type, exc_value, traceback): member in AbstractContextManager
139 def __exit__(self, typ, value, traceback): member in _GeneratorContextManager
339 def __exit__(self, *exc_info): member in closing
383 def __exit__(self, exctype, excinst, exctb): member in _RedirectStream
426 def __exit__(self, exctype, excinst, exctb): member in suppress
474 exit_method = _cb_type.__exit__
491 _exit = _cm_type.__exit__
533 def __exit__(self, *exc_details): member in ExitStack
584 self.__exit__(None, None, None)
738 def __exit__(self, *excinfo): member in nullcontext
Dcodecs.py414 def __exit__(self, type, value, tb): member in StreamWriter
663 def __exit__(self, type, value, tb): member in StreamReader
750 def __exit__(self, type, value, tb): member in StreamReaderWriter
866 def __exit__(self, type, value, tb): member in StreamRecoder
/third_party/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
Dgit_utils.py34 def __exit__(self, exc_type, _value, _traceback): member in GitLocalConfig
88 def __exit__(self, exc_type, _value, _traceback): member in GitBranch
/third_party/flutter/skia/infra/bots/
Dutils.py32 def __exit__(self, t, v, tb): member in print_timings
50 def __exit__(self, t, v, tb): member in tmp_dir
70 def __exit__(self, t, v, tb): member in chdir
107 def __exit__(self, exc_type, _value, _traceback): member in git_branch
Dgit_utils.py33 def __exit__(self, exc_type, _value, _traceback): member in GitLocalConfig
87 def __exit__(self, exc_type, _value, _traceback): member in GitBranch
/third_party/python/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)]
/third_party/mindspore/mindspore/train/callback/
D_callback.py110 def __exit__(self, *err): member in Callback
198 def __exit__(self, *err): member in CallbackManager
199 return self._stack.__exit__(*err)
/third_party/flutter/skia/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)
/third_party/python/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
/third_party/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)
/third_party/python/Lib/multiprocessing/
Dsynchronize.py97 def __exit__(self, *args): member in SemLock
98 return self._semlock.__exit__(*args)
232 def __exit__(self, *args): member in Condition
233 return self._lock.__exit__(*args)
Dsharedctypes.py195 def __exit__(self, *args): member in SynchronizedBase
196 return self._lock.__exit__(*args)
/third_party/python/Lib/test/support/
Dimport_helper.py171 def __exit__(self, *ignore_exc): member in CleanImport
195 def __exit__(self, *ignore_exc): member in DirsOnSysPath
/third_party/python/Doc/library/
Dcontextlib.rst24 :meth:`object.__enter__` and :meth:`object.__exit__`. A default
26 ``self`` while :meth:`object.__exit__` is an abstract method which by default
48 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
363 ``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional
378 def __exit__(self, *exc):
422 def __exit__(self, *exc):
513 Enters a new context manager and adds its :meth:`__exit__` method to
522 Adds a context manager's :meth:`__exit__` method to the callback stack.
526 :meth:`__exit__` method.
530 :meth:`__exit__` method and adds it directly to the callback stack.
[all …]
/third_party/python/Lib/test/test_importlib/
Dutil.py252 def __exit__(self, *exc_info): member in _ImporterMock
253 self._uncache.__exit__(None, None, None)
398 state_manager.__exit__(None, None, None)
400 uncache_manager.__exit__(None, None, None)
/third_party/python/Lib/asyncio/
Dtrsock.py204 def __exit__(self, *err): member in TransportSocket
206 return self._sock.__exit__(*err)
/third_party/mindspore/tests/
Dsummary_utils.py49 def __exit__(self, *unused_args): member in SummaryReader
/third_party/grpc/src/python/grpcio/grpc/framework/foundation/
Dlogging_pool.py47 def __exit__(self, exc_type, exc_val, exc_tb): member in _LoggingPool
/third_party/boost/libs/metaparse/tools/
Dstring_headers.py49 def __exit__(self, typ, value, traceback): member in Namespace
83 def __exit__(self, typ, value, traceback): member in IncludeGuard
/third_party/grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_channel.py67 def __exit__(self, exc_type, exc_val, exc_tb): member in TestingChannel

1234567