bpo-31708: Allow async generator expressions in synchronous functions (#3905)

This commit is contained in:
Yury Selivanov 2017-10-06 02:58:28 -04:00 committed by GitHub
parent faa135acbf
commit b8ab9d3fc8
5 changed files with 52 additions and 9 deletions

View file

@ -149,6 +149,14 @@ class AsyncBadSyntaxTest(unittest.TestCase):
[i async for i in els]
""",
"""def bar():
{i: i async for i in els}
""",
"""def bar():
{i async for i in els}
""",
"""def bar():
[await i for i in els]
""",