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 6a0fab9 commit e42cc38Copy full SHA for e42cc38
1 file changed
Lib/test/test_asyncio/test_pep492.py
@@ -119,6 +119,20 @@ def func():
119
self.assertEqual(coro.send(None), 'spam')
120
coro.close()
121
122
+ def test_async_ded_coroutines(self):
123
+ async def bar():
124
+ return 'spam'
125
+ async def foo():
126
+ return await bar()
127
+
128
+ # production mode
129
+ data = self.loop.run_until_complete(foo())
130
+ self.assertEqual(data, 'spam')
131
132
+ # debug mode
133
+ self.loop.set_debug(True)
134
135
136
137
if __name__ == '__main__':
138
unittest.main()
0 commit comments