From 80ee3b8fcfc6a350898d0a18db25393ea295d82e Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 27 Feb 2018 18:19:38 +0100 Subject: [PATCH] Show in a test that something doesn't work properly around async analysis --- test/completion/async_.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/completion/async_.py b/test/completion/async_.py index 9deecc01..cdee73c1 100644 --- a/test/completion/async_.py +++ b/test/completion/async_.py @@ -44,6 +44,17 @@ await A.b() #! 11 ['param d=2'] await A.b(d=3) +class Awaitable: + def __await__(self): + yield None + return '' + +async def awaitable_test(): + foo = await Awaitable() + # TODO doesn't work yet. + ##? int() + foo + # python >= 3.6 async def asgen():