Home
last modified time | relevance | path

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

1234567

/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 …]
Dtest_contextlib.py53 self.assertFalse(ctx.__exit__(TypeError, TypeError("foo"), None))
65 RuntimeError, ctx.__exit__, TypeError, TypeError("foo"), None
166 def __exit__(self, *exc_info): member in NestedTestCase.test_nested_right_exception.b
Dtest_importlib.py112 def __exit__(self, *exc_info): member in mock_modules
113 self._uncache.__exit__(None, None, None)
Dtest_file.py118 self.f.__exit__(None, None, None)
127 self.assertEqual(self.f.__exit__(None, None, None), None)
132 self.assertEqual(self.f.__exit__(*sys.exc_info()), None)
/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
Dtempfile.py438 def __exit__(self, exc, value, tb): member in _TemporaryFileWrapper
439 result = self.file.__exit__(exc, value, tb)
443 def __exit__(self, exc, value, tb): member in _TemporaryFileWrapper
444 self.file.__exit__(exc, value, tb)
561 def __exit__(self, exc, value, tb): member in SpooledTemporaryFile
/external/skia/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
Dgit_utils.py33 def __exit__(self, exc_type, _value, _traceback): member in GitLocalConfig
84 def __exit__(self, exc_type, _value, _traceback): member in GitBranch
/external/autotest/client/cros/cellular/
Denvironment.py41 def __exit__(self, exception, value, traceback): member in EmulatedEnvironment
98 def __exit__(self, exception, value, traceback): member in DefaultCellularTestContext
99 return self._nested.__exit__(exception, value, traceback)
Dtest_environment.py134 self.__exit__(*sys.exc_info())
137 self.__exit__(*sys.exc_info())
141 def __exit__(self, exception, value, traceback): member in CellularTestEnvironment
143 return self._nested.__exit__(exception, value, traceback)
/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/autotest/client/cros/
Ddevice_jail_utils.py39 def __exit__(self, exc_type, exc_val, traceback): member in OSFile
53 def __exit__(self, exc_type, exc_val, traceback): member in ConcurrentFunc
154 def __exit__(self, exc_type, exc_val, traceback): member in JailDevice
Dshill_temporary_profile.py26 def __exit__(self, exception, value, traceback): member in ShillTemporaryProfile
/external/python/cpython2/Doc/library/
Dcontextlib.rst25 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
77 Note that if the :meth:`__exit__` method of one of the nested context managers
80 :meth:`__exit__` method of one of the nested managers raises an exception, any
82 :meth:`__exit__` methods of any remaining outer context managers. In general,
83 :meth:`__exit__` methods should avoid raising exceptions, and in particular they
95 raises an exception that is caught and suppressed by the :meth:`__exit__` method
/external/skia/tools/skpbench/
D_hardware_android.py58 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid
59 Hardware.__exit__(self, exception_type, exception_value, traceback)
D_hardware_pixel_c.py21 def __exit__(self, exception_type, exception_value, exception_traceback): member in HardwarePixelC
22 HardwareAndroid.__exit__(self, exception_type,
D_hardware_nexus_6p.py20 def __exit__(self, exception_type, exception_value, exception_traceback): member in HardwareNexus6P
21 HardwareAndroid.__exit__(self, exception_type,
/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)
/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/libmojo/third_party/catapult/devil/devil/utils/
Dmock_calls.py60 def __exit__(self, exc_type, exc_val, exc_tb): member in TestCase._AssertCalls
62 patch.__exit__(exc_type, exc_val, exc_tb)
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls.py60 def __exit__(self, exc_type, exc_val, exc_tb): member in TestCase._AssertCalls
62 patch.__exit__(exc_type, exc_val, exc_tb)
/external/autotest/server/cros/network/
Dwifi_interface_claim_context.py21 def __exit__(self, exception, value, traceback): member in WiFiInterfaceClaimContext
/external/python/cpython2/Misc/Vim/
Dsyntax_test.py23 def __exit__(self, *args): member in Bar
/external/r8/tools/
Dutils.py73 def __exit__(self, *_): member in TempDir
85 def __exit__(self, *_): member in ChangedWorkingDirectory

1234567