Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315b748 commit 6d0c4c3Copy full SHA for 6d0c4c3
1 file changed
Lib/test/test_asyncio/test_pep492.py
@@ -107,6 +107,10 @@ def __await__(self): yield
107
108
self.assertTrue(asyncio.iscoroutine(FakeCoro()))
109
110
+ def test_iscoroutinefunction(self):
111
+ async def foo(): pass
112
+ self.assertTrue(asyncio.iscoroutinefunction(foo))
113
+
114
def test_function_returning_awaitable(self):
115
class Awaitable:
116
def __await__(self):
0 commit comments