Home
last modified time | relevance | path

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

123456

/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.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__()
392 def __enter__(self): member in mycontext
506 def __enter__(self): member in TestContextDecorator.test_typo_exit.mycontext
521 def __enter__(self): member in TestContextDecorator.test_contextdecorator_as_mixin.somecontext
629 def __enter__(self): member in TestBaseExitStack.test_push.ExitCM
652 def __enter__(self): member in TestBaseExitStack.test_enter_context.TestCM
[all …]
Dtest_global.py13 self._warnings_manager.__enter__()
58 cm.__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
130 def __enter__(self): member in _GeneratorContextManager
337 def __enter__(self): member in closing
378 def __enter__(self): member in _RedirectStream
423 def __enter__(self): member in suppress
492 result = _cm_type.__enter__(cm)
530 def __enter__(self): member in ExitStack
735 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/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.
221 Return a context manager that returns *enter_result* from ``__enter__``, but
319 ``__enter__`` method and so is available as the target of the
363 ``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional
374 def __enter__(self):
419 def __enter__(self):
515 manager's own :meth:`__enter__` method.
524 As ``__enter__`` is *not* invoked, this method can be used to cover
[all …]
/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/Lib/test/support/
Dimport_helper.py168 def __enter__(self): member in CleanImport
192 def __enter__(self): member in DirsOnSysPath
/third_party/python/Lib/test/test_importlib/
Dutil.py247 def __enter__(self): member in _ImporterMock
249 self._uncache.__enter__()
392 uncache_manager.__enter__()
394 state_manager.__enter__()
/third_party/python/Lib/asyncio/
Dtrsock.py200 def __enter__(self): member in TransportSocket
202 return self._sock.__enter__()

123456