Home
last modified time | relevance | path

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

12345678910>>...14

/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/cpython3/Lib/test/
Dtest_with.py20 def __enter__(self): member in MockContextManager
22 return _GeneratorContextManager.__enter__(self)
59 def __enter__(self): member in Nested
66 vars.append(mgr.__enter__())
96 def __enter__(self): member in MockNested
98 return Nested.__enter__(self)
133 def __enter__(self): member in FailureTestCase.testExitAttributeError.LacksExit
165 def __enter__(self): member in FailureTestCase.testEnterThrows.EnterThrows
180 def __enter__(self): member in FailureTestCase.testExitThrows.ExitThrows
467 def __enter__(self): member in ExceptionalTestCase.testRaisedStopIteration2.cm
[all …]
Dtest_contextlib.py22 self.assertIs(manager.__enter__(), manager)
33 def __enter__(self): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch
47 __enter__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoEnter
94 ctx.__enter__()
106 ctx.__enter__()
387 def __enter__(self): member in mycontext
501 def __enter__(self): member in TestContextDecorator.test_typo_exit.mycontext
516 def __enter__(self): member in TestContextDecorator.test_contextdecorator_as_mixin.somecontext
613 def __enter__(self): member in TestBaseExitStack.test_push.ExitCM
636 def __enter__(self): member in TestBaseExitStack.test_enter_context.TestCM
[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 …]
/external/skqp/infra/bots/
Dgit_utils.py22 def __enter__(self): member in GitLocalConfig
59 def __enter__(self): member in GitBranch
131 def __enter__(self): member in NewGitCheckout
136 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/skia/infra/bots/
Dgit_utils.py22 def __enter__(self): member in GitLocalConfig
59 def __enter__(self): member in GitBranch
131 def __enter__(self): member in NewGitCheckout
136 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/mock/mock/tests/
Dtestwith.py76 mock.__enter__ = Mock()
81 self.assertEqual(m, mock.__enter__.return_value)
82 mock.__enter__.assert_called_with()
92 mock.__enter__.assert_called_with()
154 expected_calls = [call('foo'), call().__enter__(), call().read(),
168 call('foo'), call().__enter__(), call().read(),
170 call('bar'), call().__enter__(), call().read(),
/external/python/cpython3/Lib/
Dcontextlib.py18 def __enter__(self): member in AbstractContextManager
107 def __enter__(self): member in _GeneratorContextManager
295 def __enter__(self): member in closing
310 def __enter__(self): member in _RedirectStream
355 def __enter__(self): member in suppress
426 result = _cm_type.__enter__(cm)
465 def __enter__(self): member in ExitStack
673 def __enter__(self): member in nullcontext
/external/python/cpython2/Lib/
Dcontextlib.py15 def __enter__(self): member in GeneratorContextManager
111 enter = mgr.__enter__
151 def __enter__(self): member in closing
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py71 mock.__enter__ = Mock()
76 self.assertEqual(m, mock.__enter__.return_value)
77 mock.__enter__.assert_called_with()
87 mock.__enter__.assert_called_with()
163 expected_calls = [call('foo'), call().__enter__(), call().read(),
177 call('foo'), call().__enter__(), call().read(),
179 call('bar'), call().__enter__(), call().read(),
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcontextlib_ext.py12 def __enter__(self): member in _OptionalContextManager
14 return self._manager.__enter__()
/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
/external/skia/tools/skpbench/
D_hardware_android.py20 def __enter__(self): member in HardwareAndroid
21 Hardware.__enter__(self)
D_hardware_pixel.py16 def __enter__(self): member in HardwarePixel
17 HardwareAndroid.__enter__(self)
D_hardware_nexus_6p.py16 def __enter__(self): member in HardwareNexus6P
17 HardwareAndroid.__enter__(self)
D_hardware_pixel_c.py19 def __enter__(self): member in HardwarePixelC
20 HardwareAndroid.__enter__(self)
D_hardware_pixel2.py18 def __enter__(self): member in HardwarePixel2
19 HardwareAndroid.__enter__(self)
/external/skqp/tools/skpbench/
D_hardware_android.py20 def __enter__(self): member in HardwareAndroid
21 Hardware.__enter__(self)
D_hardware_pixel.py16 def __enter__(self): member in HardwarePixel
17 HardwareAndroid.__enter__(self)
D_hardware_nexus_6p.py16 def __enter__(self): member in HardwareNexus6P
17 HardwareAndroid.__enter__(self)
D_hardware_pixel_c.py19 def __enter__(self): member in HardwarePixelC
20 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__()

12345678910>>...14