/external/python/cpython2/Tools/pybench/ |
D | With.py | 11 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/ |
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__() 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/ |
D | test_with.py | 21 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/ |
D | git_utils.py | 22 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__()
|
D | utils.py | 29 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/ |
D | git_utils.py | 22 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__()
|
D | utils.py | 29 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/ |
D | testwith.py | 76 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/ |
D | contextlib.py | 18 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/ |
D | contextlib.py | 15 def __enter__(self): member in GeneratorContextManager 111 enter = mgr.__enter__ 151 def __enter__(self): member in closing
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testwith.py | 71 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/ |
D | contextlib_ext.py | 12 def __enter__(self): member in _OptionalContextManager 14 return self._manager.__enter__()
|
/external/autotest/client/cros/ |
D | device_jail_utils.py | 35 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.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)
|
/external/skqp/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)
|
/external/autotest/client/cros/networking/ |
D | apmanager_xmlrpc_server.py | 32 def __enter__(self): member in ApmanagerXmlRpcDelegate 33 super(ApmanagerXmlRpcDelegate, self).__enter__()
|
/external/python/cpython2/Lib/multiprocessing/ |
D | synchronize.py | 88 def __enter__(self): member in SemLock 89 return self._semlock.__enter__() 214 def __enter__(self): member in Condition 215 return self._lock.__enter__()
|