Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
/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.py21 self.assertIs(manager.__enter__(), manager)
32 def __enter__(self): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch
46 __enter__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoEnter
93 ctx.__enter__()
105 ctx.__enter__()
386 def __enter__(self): member in mycontext
500 def __enter__(self): member in TestContextDecorator.test_typo_exit.mycontext
515 def __enter__(self): member in TestContextDecorator.test_contextdecorator_as_mixin.somecontext
623 def __enter__(self): member in TestBaseExitStack.test_push.ExitCM
646 def __enter__(self): member in TestBaseExitStack.test_enter_context.TestCM
[all …]
/external/tensorflow/tensorflow/python/autograph/core/
Dfunction_wrappers.py74 def __enter__(self): member in FunctionScope
76 self.autograph_ctx.__enter__()
78 self.name_scope.__enter__()
80 self.autodeps_scope.__enter__()
Dag_ctx.py70 def __enter__(self): member in ControlStatusCtx
86 def __enter__(self): member in NullCtx
/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/python/cpython2/Lib/
Dcontextlib.py15 def __enter__(self): member in GeneratorContextManager
111 enter = mgr.__enter__
151 def __enter__(self): member in closing
/external/skia/infra/bots/
Dgit_utils.py23 def __enter__(self): member in GitLocalConfig
60 def __enter__(self): member in GitBranch
139 def __enter__(self): member in NewGitCheckout
144 super(NewGitCheckout, self).__enter__()
Dutils.py31 def __enter__(self): member in print_timings
47 def __enter__(self): member in tmp_dir
68 def __enter__(self): member in chdir
92 def __enter__(self): member in git_branch
/external/python/cpython3/Lib/
Dcontextlib.py21 def __enter__(self): member in AbstractContextManager
112 def __enter__(self): member in _GeneratorContextManager
300 def __enter__(self): member in closing
315 def __enter__(self): member in _RedirectStream
360 def __enter__(self): member in suppress
429 result = _cm_type.__enter__(cm)
467 def __enter__(self): member in ExitStack
672 def __enter__(self): member in nullcontext
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcontextlib_ext.py12 def __enter__(self): member in _OptionalContextManager
14 return self._manager.__enter__()
/external/python/mock/mock/tests/
Dtestwith.py74 mock.__enter__ = Mock()
79 self.assertEqual(m, mock.__enter__.return_value)
80 mock.__enter__.assert_called_with()
90 mock.__enter__.assert_called_with()
165 expected_calls = [call('foo'), call().__enter__(), call().read(),
179 call('foo'), call().__enter__(), call().read(),
181 call('bar'), call().__enter__(), call().read(),
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py69 mock.__enter__ = Mock()
74 self.assertEqual(m, mock.__enter__.return_value)
75 mock.__enter__.assert_called_with()
85 mock.__enter__.assert_called_with()
160 expected_calls = [call('foo'), call().__enter__(), call().read(),
174 call('foo'), call().__enter__(), call().read(),
176 call('bar'), call().__enter__(), call().read(),
/external/tensorflow/tensorflow/python/distribute/parallel_device/
Dparallel_device.py151 def __enter__(self): member in ParallelDevice
159 self._device_scope.__enter__()
164 self._saving_scope.__enter__()
/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/skia/tools/skpbench/
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/tensorflow/tensorflow/python/framework/experimental/
Dtape.py49 def __enter__(self): member in GradientTape
52 self._ctx_manager.__enter__()

12345678910>>...17