Searched refs:isawaitable (Results 1 – 19 of 19) sorted by relevance
67 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))
76 assert inspect.isawaitable(ret), f'{func!r} returned non-awaitable'84 if inspect.isawaitable(ret):
56 return iscoroutinefunction(obj) or inspect.isawaitable(obj)
64 if inspect.isawaitable(value):
173 if inspect.isawaitable(value):
176 if inspect.isawaitable(value):
44 coroutines--use inspect.isawaitable instead.
225 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
1653 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
306 Use :func:`inspect.isawaitable` to detect them.324 Use :func:`inspect.isawaitable` to detect them.
48 awaitable (:func:`inspect.isawaitable` is used for the test.)
346 .. function:: isawaitable(object)359 assert not isawaitable(gen())360 assert isawaitable(gen_coro())
868 >>> inspect.isawaitable(mock()) # doctest: +SKIP
626 if inspect.isawaitable(coro_or_future):
219 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))
397 self.assertTrue(inspect.isawaitable(g.aclose()))
348 def isawaitable(object): function
1315 :func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`,