/third_party/python/Lib/test/ |
D | test_with.py | 24 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 …]
|
D | test_contextlib.py | 18 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 …]
|
D | test_global.py | 17 self._warnings_manager.__exit__(None, None, None) 59 unittest.addModuleCleanup(cm.__exit__, None, None, None)
|
D | test_file.py | 116 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/ |
D | contextlib.py | 26 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
|
D | codecs.py | 414 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/ |
D | utils.py | 35 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
|
D | git_utils.py | 34 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/ |
D | utils.py | 32 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
|
D | git_utils.py | 33 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/ |
D | testwith.py | 70 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.py | 110 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.py | 60 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/ |
D | connection.py | 36 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.py | 71 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/ |
D | synchronize.py | 97 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)
|
D | sharedctypes.py | 195 def __exit__(self, *args): member in SynchronizedBase 196 return self._lock.__exit__(*args)
|
/third_party/python/Lib/test/support/ |
D | import_helper.py | 171 def __exit__(self, *ignore_exc): member in CleanImport 195 def __exit__(self, *ignore_exc): member in DirsOnSysPath
|
/third_party/python/Doc/library/ |
D | contextlib.rst | 24 :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/ |
D | util.py | 252 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/ |
D | trsock.py | 204 def __exit__(self, *err): member in TransportSocket 206 return self._sock.__exit__(*err)
|
/third_party/mindspore/tests/ |
D | summary_utils.py | 49 def __exit__(self, *unused_args): member in SummaryReader
|
/third_party/grpc/src/python/grpcio/grpc/framework/foundation/ |
D | logging_pool.py | 47 def __exit__(self, exc_type, exc_val, exc_tb): member in _LoggingPool
|
/third_party/boost/libs/metaparse/tools/ |
D | string_headers.py | 49 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.py | 67 def __exit__(self, exc_type, exc_val, exc_tb): member in TestingChannel
|