mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-31708: Allow async generator expressions in synchronous functions (#3905)
This commit is contained in:
parent
faa135acbf
commit
b8ab9d3fc8
5 changed files with 52 additions and 9 deletions
|
@ -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]
|
||||
""",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue