mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Better async testing.
This commit is contained in:
@@ -2,14 +2,16 @@
|
|||||||
Tests for all async use cases.
|
Tests for all async use cases.
|
||||||
|
|
||||||
Currently we're not supporting completion of them, but they should at least not
|
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():
|
async def x():
|
||||||
await 3
|
argh = await x()
|
||||||
|
#?
|
||||||
|
argh
|
||||||
|
return 2
|
||||||
|
|
||||||
#?
|
#? int()
|
||||||
x()
|
x()
|
||||||
|
|
||||||
a = await x()
|
a = await x()
|
||||||
@@ -17,3 +19,7 @@ a = await x()
|
|||||||
a
|
a
|
||||||
|
|
||||||
|
|
||||||
|
async def x2():
|
||||||
|
async with open('asdf') as f:
|
||||||
|
#? ['readlines']
|
||||||
|
f.readlines
|
||||||
|
|||||||
Reference in New Issue
Block a user