Home
last modified time | relevance | path

Searched refs:iscoroutinefunction (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py11 from asyncio import run, iscoroutinefunction
63 self.assertTrue(iscoroutinefunction(mock_method))
117 self.assertTrue(inspect.iscoroutinefunction(async_func))
124 self.assertTrue(iscoroutinefunction(mock_method))
148 self.assertTrue(inspect.iscoroutinefunction(async_func))
158 self.assertTrue(iscoroutinefunction(test_async))
173 self.assertTrue(iscoroutinefunction(mock))
178 self.assertTrue(iscoroutinefunction(mock))
179 self.assertTrue(inspect.iscoroutinefunction(mock))
191 self.assertTrue(iscoroutinefunction(mock))
[all …]
Dtestmagicmethods.py4 from asyncio import iscoroutinefunction
288 self.assertTrue(iscoroutinefunction(mock.__aexit__))
289 self.assertTrue(iscoroutinefunction(mock.__aenter__))
314 self.assertTrue(iscoroutinefunction(mock.__aexit__))
315 self.assertTrue(iscoroutinefunction(mock.__aenter__))
/third_party/python/Lib/asyncio/
Dcoroutines.py21 def iscoroutinefunction(func): function
23 return (inspect.iscoroutinefunction(func) or
Dunix_events.py95 coroutines.iscoroutinefunction(callback)):
Dbase_events.py772 coroutines.iscoroutinefunction(callback)):
/third_party/python/Lib/unittest/
Dasync_case.py103 assert inspect.iscoroutinefunction(func), f'{func!r} is not an async function'
111 if inspect.iscoroutinefunction(func):
Dmock.py34 from asyncio import iscoroutinefunction
58 return iscoroutinefunction(obj) or inspect.isawaitable(obj)
63 return iscoroutinefunction(func)
515 if iscoroutinefunction(getattr(spec, attr, None)):
1330 if inspect.iscoroutinefunction(func):
1818 if inspect.iscoroutinefunction(f):
2247 elif iscoroutinefunction(effect):
2259 if iscoroutinefunction(self._mock_wraps):
2772 if iscoroutinefunction(original):
/third_party/python/Lib/test/test_asyncio/
Dtest_pep492.py124 self.assertTrue(asyncio.iscoroutinefunction(foo))
Dtest_tasks.py1729 self.assertFalse(asyncio.iscoroutinefunction(fn))
1733 self.assertFalse(asyncio.iscoroutinefunction(fn1))
1737 self.assertTrue(asyncio.iscoroutinefunction(fn2))
1739 self.assertFalse(asyncio.iscoroutinefunction(mock.Mock()))
1740 self.assertTrue(asyncio.iscoroutinefunction(mock.AsyncMock()))
1746 self.assertTrue(asyncio.iscoroutinefunction(func))
/third_party/python/Lib/test/
Dtest_inspect.py97 inspect.iscoroutine, inspect.iscoroutinefunction,
108 predicate == inspect.iscoroutinefunction) and \
169 self.istest(inspect.iscoroutinefunction, 'coroutine_function_example')
190 inspect.iscoroutinefunction(gen_coroutine_function_example))
192 inspect.iscoroutinefunction(
206 inspect.iscoroutinefunction(unittest.mock.Mock()))
208 inspect.iscoroutinefunction(unittest.mock.AsyncMock()))
210 inspect.iscoroutinefunction(coroutine_function_example))
212 inspect.iscoroutinefunction(
Dtest_coroutines.py519 self.assertTrue(inspect.iscoroutinefunction(ns['foo']))
/third_party/jinja2/
Dnodes.py767 or inspect.iscoroutinefunction(func)
/third_party/python/Lib/
Dpydoc.py1044 if (inspect.iscoroutinefunction(object) or
1478 if (inspect.iscoroutinefunction(object) or
Dinspect.py409 def iscoroutinefunction(obj): function
/third_party/python/Doc/library/
Dinspect.rst344 .. function:: iscoroutinefunction(object)
Dunittest.mock.rst866 >>> asyncio.iscoroutinefunction(mock)
/third_party/python/Doc/whatsnew/
D3.5.rst1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,
/third_party/python/Misc/
DNEWS2148 - gh-issue-84753: :func:`inspect.iscoroutinefunction`,
2154 This makes :func:`inspect.iscoroutinefunction` consistent with the
2155 behavior of :func:`asyncio.iscoroutinefunction`. Patch by Mehdi ABAAKOUK.
17625 isgeneratorfunction, iscoroutinefunction, isasyncgenfunction on a method
19354 - bpo-34890: Make :func:`inspect.iscoroutinefunction`,
28483 - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
32448 - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.