Home
last modified time | relevance | path

Searched refs:isawaitable (Results 1 – 19 of 19) sorted by relevance

/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py67 self.assertTrue(inspect.isawaitable(m))
73 self.assertTrue(inspect.isawaitable(m))
129 self.assertTrue(inspect.isawaitable(m))
164 self.assertTrue(inspect.isawaitable(m))
242 self.assertTrue(inspect.isawaitable(awaitable))
289 self.assertTrue(inspect.isawaitable(async_mock()))
303 self.assertTrue(inspect.isawaitable(async_mock()))
316 self.assertTrue(inspect.isawaitable(m))
323 self.assertTrue(inspect.isawaitable(m))
346 self.assertFalse(inspect.isawaitable(mock_method))
/third_party/python/Lib/unittest/
Dasync_case.py76 assert inspect.isawaitable(ret), f'{func!r} returned non-awaitable'
84 if inspect.isawaitable(ret):
Dmock.py56 return iscoroutinefunction(obj) or inspect.isawaitable(obj)
/third_party/jinja2/
Dasync_utils.py64 if inspect.isawaitable(value):
Dasyncsupport.py173 if inspect.isawaitable(value):
/third_party/skia/third_party/externals/jinja2/
Dasyncsupport.py173 if inspect.isawaitable(value):
/third_party/node/tools/inspector_protocol/jinja2/
Dasyncsupport.py176 if inspect.isawaitable(value):
/third_party/python/Misc/NEWS.d/
D3.5.0b3.rst44 coroutines--use inspect.isawaitable instead.
D3.6.0b4.rst225 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
D3.5.3rc1.rst1653 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
/third_party/python/Doc/library/
Dcollections.abc.rst306 Use :func:`inspect.isawaitable` to detect them.
324 Use :func:`inspect.isawaitable` to detect them.
Dasyncio-future.rst48 awaitable (:func:`inspect.isawaitable` is used for the test.)
Dinspect.rst346 .. function:: isawaitable(object)
359 assert not isawaitable(gen())
360 assert isawaitable(gen_coro())
Dunittest.mock.rst868 >>> inspect.isawaitable(mock()) # doctest: +SKIP
/third_party/python/Lib/asyncio/
Dtasks.py626 if inspect.isawaitable(coro_or_future):
/third_party/python/Lib/test/
Dtest_inspect.py219 self.assertFalse(inspect.isawaitable(gen()))
224 self.assertTrue(inspect.isawaitable(coro))
225 self.assertTrue(inspect.isawaitable(gen_coro))
230 self.assertTrue(inspect.isawaitable(Future()))
231 self.assertFalse(inspect.isawaitable(Future))
236 self.assertFalse(inspect.isawaitable(not_fut))
Dtest_asyncgen.py397 self.assertTrue(inspect.isawaitable(g.aclose()))
/third_party/python/Lib/
Dinspect.py348 def isawaitable(object): function
/third_party/python/Doc/whatsnew/
D3.5.rst1315 :func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`,