summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_coroutines.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2017-10-06 06:58:28 (GMT)
committerGitHub <noreply@github.com>2017-10-06 06:58:28 (GMT)
commitb8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd (patch)
tree0baec2d80c9dc9f81b215fafd0074edec43730cb /Lib/test/test_coroutines.py
parentfaa135acbfcd55f79fb97f7525c8aa6f5a5b6a22 (diff)
downloadcpython-b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd.zip
cpython-b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd.tar.gz
cpython-b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd.tar.bz2
bpo-31708: Allow async generator expressions in synchronous functions (#3905)
Diffstat (limited to 'Lib/test/test_coroutines.py')
-rw-r--r--Lib/test/test_coroutines.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 0803517..d7d38a3 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -150,6 +150,14 @@ class AsyncBadSyntaxTest(unittest.TestCase):
""",
"""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]
""",