Home
last modified time | relevance | path

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

1234567

/third_party/python/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 …]
Dtest_global.py12 self._warnings_manager.__enter__()
/third_party/flutter/skia/infra/bots/
Dgit_utils.py22 def __enter__(self): member in GitLocalConfig
59 def __enter__(self): member in GitBranch
133 def __enter__(self): member in NewGitCheckout
138 super(NewGitCheckout, self).__enter__()
Dutils.py28 def __enter__(self): member in print_timings
44 def __enter__(self): member in tmp_dir
65 def __enter__(self): member in chdir
89 def __enter__(self): member in git_branch
/third_party/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
/third_party/python/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
/third_party/python/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(),
/third_party/flutter/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)
/third_party/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)
D_hardware_pixel2.py18 def __enter__(self): member in HardwarePixel2
19 HardwareAndroid.__enter__(self)
D_hardware_android.py21 def __enter__(self): member in HardwareAndroid
22 Hardware.__enter__(self)
/third_party/python/Lib/multiprocessing/dummy/
Dconnection.py33 def __enter__(self): member in Listener
71 def __enter__(self): member in Connection
/third_party/python/Lib/multiprocessing/
Dsynchronize.py94 def __enter__(self): member in SemLock
95 return self._semlock.__enter__()
229 def __enter__(self): member in Condition
230 return self._lock.__enter__()
/third_party/python/Doc/library/
Dcontextlib.rst24 :meth:`object.__enter__` and :meth:`object.__exit__`. A default
25 implementation for :meth:`object.__enter__` is provided which returns
48 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
161 Return a context manager that returns *enter_result* from ``__enter__``, but
283 ``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional
294 def __enter__(self):
339 def __enter__(self):
396 manager's own :meth:`__enter__` method.
405 As ``__enter__`` is *not* invoked, this method can be used to cover
406 part of an :meth:`__enter__` implementation with a context manager's own
[all …]
/third_party/grpc/src/python/grpcio/grpc/framework/foundation/
Dlogging_pool.py44 def __enter__(self): member in _LoggingPool
/third_party/python/Lib/asyncio/
Dtrsock.py200 def __enter__(self): member in TransportSocket
202 return self._sock.__enter__()
/third_party/python/Lib/test/test_importlib/
Dutil.py245 def __enter__(self): member in _ImporterMock
247 self._uncache.__enter__()
390 uncache_manager.__enter__()
392 state_manager.__enter__()

1234567