Home
last modified time | relevance | path

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

/third_party/python/Lib/unittest/
Dasync_case.py77 assert inspect.isawaitable(ret)
85 if inspect.isawaitable(ret):
Dmock.py52 return iscoroutinefunction(obj) or inspect.isawaitable(obj)
/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/skia/third_party/externals/jinja2/
Dasyncsupport.py173 if inspect.isawaitable(value):
/third_party/jinja2/
Dasyncsupport.py173 if inspect.isawaitable(value):
/third_party/node/tools/inspector_protocol/jinja2/
Dasyncsupport.py176 if inspect.isawaitable(value):
/third_party/python/Doc/library/
Dcollections.abc.rst204 Use :func:`inspect.isawaitable` to detect them.
222 Use :func:`inspect.isawaitable` to detect them.
Dasyncio-future.rst48 awaitable (:func:`inspect.isawaitable` is used for the test.)
Dinspect.rst340 .. function:: isawaitable(object)
353 assert not isawaitable(gen())
354 assert isawaitable(gen_coro())
Dunittest.mock.rst867 >>> inspect.isawaitable(mock()) # doctest: +SKIP
/third_party/python/Lib/asyncio/
Dtasks.py676 elif inspect.isawaitable(coro_or_future):
/third_party/python/Lib/test/
Dtest_inspect.py214 self.assertFalse(inspect.isawaitable(gen()))
219 self.assertTrue(inspect.isawaitable(coro))
220 self.assertTrue(inspect.isawaitable(gen_coro))
225 self.assertTrue(inspect.isawaitable(Future()))
226 self.assertFalse(inspect.isawaitable(Future))
231 self.assertFalse(inspect.isawaitable(not_fut))
Dtest_asyncgen.py361 self.assertTrue(inspect.isawaitable(g.aclose()))
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/aio/
Dserver.pyx.pxi328 …return inspect.isawaitable(handler) or inspect.iscoroutinefunction(handler) or inspect.isasyncgenf…
/third_party/python/Lib/
Dinspect.py230 def isawaitable(object): function
/third_party/python/Doc/whatsnew/
D3.5.rst1315 :func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`,
/third_party/python/Misc/
DNEWS17779 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
21789 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
23543 coroutines--use inspect.isawaitable instead.