/third_party/python/Lib/test/ |
D | test_with.py | 20 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 …]
|
D | test_contextlib.py | 22 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 …]
|
D | test_global.py | 13 self._warnings_manager.__enter__() 58 cm.__enter__()
|
/third_party/flutter/skia/infra/bots/ |
D | git_utils.py | 22 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__()
|
D | utils.py | 28 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/ |
D | git_utils.py | 23 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__()
|
D | utils.py | 31 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/ |
D | contextlib.py | 21 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/ |
D | testwith.py | 69 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.py | 20 def __enter__(self): member in HardwareAndroid 21 Hardware.__enter__(self)
|
D | _hardware_pixel.py | 16 def __enter__(self): member in HardwarePixel 17 HardwareAndroid.__enter__(self)
|
D | _hardware_nexus_6p.py | 16 def __enter__(self): member in HardwareNexus6P 17 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel_c.py | 19 def __enter__(self): member in HardwarePixelC 20 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel2.py | 18 def __enter__(self): member in HardwarePixel2 19 HardwareAndroid.__enter__(self)
|
/third_party/skia/tools/skpbench/ |
D | _hardware_pixel.py | 16 def __enter__(self): member in HardwarePixel 17 HardwareAndroid.__enter__(self)
|
D | _hardware_nexus_6p.py | 16 def __enter__(self): member in HardwareNexus6P 17 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel_c.py | 19 def __enter__(self): member in HardwarePixelC 20 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel2.py | 18 def __enter__(self): member in HardwarePixel2 19 HardwareAndroid.__enter__(self)
|
D | _hardware_android.py | 21 def __enter__(self): member in HardwareAndroid 22 Hardware.__enter__(self)
|
/third_party/python/Lib/multiprocessing/dummy/ |
D | connection.py | 33 def __enter__(self): member in Listener 71 def __enter__(self): member in Connection
|
/third_party/python/Doc/library/ |
D | contextlib.rst | 24 :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/ |
D | synchronize.py | 94 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/ |
D | import_helper.py | 168 def __enter__(self): member in CleanImport 192 def __enter__(self): member in DirsOnSysPath
|
/third_party/python/Lib/test/test_importlib/ |
D | util.py | 247 def __enter__(self): member in _ImporterMock 249 self._uncache.__enter__() 392 uncache_manager.__enter__() 394 state_manager.__enter__()
|
/third_party/python/Lib/asyncio/ |
D | trsock.py | 200 def __enter__(self): member in TransportSocket 202 return self._sock.__enter__()
|