Home
last modified time | relevance | path

Searched refs:__enter__ (Results 1 – 25 of 153) sorted by relevance

1234567

/external/python/cpython2/Tools/pybench/
DWith.py11 def __enter__(self): member in WithFinally.ContextManager
57 def __enter__(self): member in TryFinally.ContextManager
69 cm.__enter__()
73 cm.__enter__()
77 cm.__enter__()
81 cm.__enter__()
85 cm.__enter__()
89 cm.__enter__()
93 cm.__enter__()
97 cm.__enter__()
[all …]
/external/python/cpython2/Lib/test/
Dtest_with.py21 def __enter__(self): member in MockContextManager
23 return GeneratorContextManager.__enter__(self)
60 def __enter__(self): member in Nested
67 vars.append(mgr.__enter__())
97 def __enter__(self): member in MockNested
99 return Nested.__enter__(self)
125 def __enter__(self): member in FailureTestCase.testExitAttributeError.LacksExit
162 def __enter__(self): member in FailureTestCase.testEnterThrows.EnterThrows
177 def __enter__(self): member in FailureTestCase.testExitThrows.ExitThrows
461 def __enter__(self): member in ExceptionalTestCase.testRaisedStopIteration2.cm
[all …]
Dtest_contextlib.py51 ctx.__enter__()
63 ctx.__enter__()
164 def __enter__(self): member in NestedTestCase.test_nested_right_exception.b
Dtest_importlib.py107 def __enter__(self): member in mock_modules
109 self._uncache.__enter__()
/external/skia/infra/bots/
Dgit_utils.py22 def __enter__(self): member in GitLocalConfig
58 def __enter__(self): member in GitBranch
128 def __enter__(self): member in NewGitCheckout
133 super(NewGitCheckout, self).__enter__()
Dutils.py29 def __enter__(self): member in print_timings
45 def __enter__(self): member in tmp_dir
66 def __enter__(self): member in chdir
90 def __enter__(self): member in git_branch
/external/python/cpython2/Lib/
Dcontextlib.py15 def __enter__(self): member in GeneratorContextManager
111 enter = mgr.__enter__
151 def __enter__(self): member in closing
/external/autotest/client/cros/cellular/
Denvironment.py37 def __enter__(self): member in EmulatedEnvironment
92 def __enter__(self): member in DefaultCellularTestContext
95 self.env) = self._nested.__enter__()
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcontextlib_ext.py12 def __enter__(self): member in _OptionalContextManager
14 return self._manager.__enter__()
Dcontextlib_ext_unittest.py18 def __enter__(self): member in OptionalUnittest.SampleContextMgr
/external/autotest/client/cros/
Ddevice_jail_utils.py35 def __enter__(self): member in OSFile
50 def __enter__(self): member in ConcurrentFunc
67 def __enter__(self): member in JailDevice
Dshill_temporary_profile.py15 def __enter__(self): member in ShillTemporaryProfile
/external/skia/tools/skpbench/
D_hardware_android.py22 def __enter__(self): member in HardwareAndroid
56 return Hardware.__enter__(self)
D_hardware_pixel_c.py17 def __enter__(self): member in HardwarePixelC
19 return HardwareAndroid.__enter__(self)
D_hardware_nexus_6p.py16 def __enter__(self): member in HardwareNexus6P
18 return HardwareAndroid.__enter__(self)
/external/autotest/client/cros/networking/
Dapmanager_xmlrpc_server.py32 def __enter__(self): member in ApmanagerXmlRpcDelegate
33 super(ApmanagerXmlRpcDelegate, self).__enter__()
/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py88 def __enter__(self): member in SemLock
89 return self._semlock.__enter__()
214 def __enter__(self): member in Condition
215 return self._lock.__enter__()
/external/autotest/server/hosts/
Dfile_store_unittest.py130 mock_file_lock.__enter__.return_value = mock_file_lock
150 mock_file_lock.__enter__.return_value = mock_file_lock
175 mock_file_lock.__enter__.return_value = mock_file_lock
/external/libmojo/third_party/catapult/devil/devil/utils/
Dmock_calls.py55 def __enter__(self): member in TestCase._AssertCalls
57 patch.__enter__()
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls.py55 def __enter__(self): member in TestCase._AssertCalls
57 patch.__enter__()
/external/autotest/server/cros/network/
Dwifi_interface_claim_context.py17 def __enter__(self): member in WiFiInterfaceClaimContext
/external/python/cpython2/Misc/Vim/
Dsyntax_test.py21 def __enter__(self): member in Bar
/external/r8/tools/
Dutils.py69 def __enter__(self): member in TempDir
80 def __enter__(self): member in ChangedWorkingDirectory
/external/autotest/client/common_lib/
Dmetrics_mock_class.py65 def __enter__(self, *args, **kwargs): member in mock_class_base
/external/autotest/client/cros/video/
Dimport_screenshot_capturer.py33 def __enter__(self): member in ImportScreenShotCapturer

1234567