Home
last modified time | relevance | path

Searched refs:__exit__ (Results 1 – 25 of 156) 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.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 …]
Dtest_global.py16 self._warnings_manager.__exit__(None, None, None)
Dtest_file.py113 self.f.__exit__(None, None, None)
122 self.assertEqual(self.f.__exit__(None, None, None), None)
127 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
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
Dtempfile.py491 def __exit__(self, exc, value, tb): member in _TemporaryFileWrapper
492 result = self.file.__exit__(exc, value, tb)
680 def __exit__(self, exc, value, tb): member in SpooledTemporaryFile
825 def __exit__(self, exc, value, tb): member in TemporaryDirectory
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/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)
D_hardware.py29 def __exit__(self, exception_type, exception_value, traceback): member in Hardware
/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/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.
283 ``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional
298 def __exit__(self, *exc):
342 def __exit__(self, *exc):
394 Enters a new context manager and adds its :meth:`__exit__` method to
403 Adds a context manager's :meth:`__exit__` method to the callback stack.
407 :meth:`__exit__` method.
411 :meth:`__exit__` method and adds it directly to the callback stack.
[all …]
/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/python/Lib/asyncio/
Dtrsock.py204 def __exit__(self, *err): member in TransportSocket
206 return self._sock.__exit__(*err)
/third_party/python/Lib/test/test_importlib/
Dutil.py250 def __exit__(self, *exc_info): member in _ImporterMock
251 self._uncache.__exit__(None, None, None)
396 state_manager.__exit__(None, None, None)
398 uncache_manager.__exit__(None, None, None)
/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
/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/python/Lib/urllib/
Dresponse.py33 def __exit__(self, type, value, traceback): member in addbase

1234567