Better async testing.

This commit is contained in:
Dave Halter
2017-01-07 15:40:55 +01:00
parent 6a18ddf8cb
commit aff3950085

View File

@@ -2,14 +2,16 @@
Tests for all async use cases.
Currently we're not supporting completion of them, but they should at least not
raise errors or return strange results.
raise errors or return extremely strange results.
"""
async def x():
await 3
argh = await x()
#?
argh
return 2
#?
#? int()
x()
a = await x()
@@ -17,3 +19,7 @@ a = await x()
a
async def x2():
async with open('asdf') as f:
#? ['readlines']
f.readlines