Author: Raffael Tfirst <[email protected]>
Branch: py3.5-async
Changeset: r85651:5df7aae1f80a
Date: 2016-07-11 11:24 +0200
http://bitbucket.org/pypy/pypy/changeset/5df7aae1f80a/
Log: Add syntax tests for invalid async await entries
diff --git a/pypy/interpreter/test/test_syntax.py
b/pypy/interpreter/test/test_syntax.py
--- a/pypy/interpreter/test/test_syntax.py
+++ b/pypy/interpreter/test/test_syntax.py
@@ -78,6 +78,27 @@
def f():
(i for i in x) = 10
+
+ async def foo(a=await something()):
+ pass
+
+ async def foo():
+ [i async for i in els]
+
+ async def foo():
+ await
+
+ def foo():
+ await something()
+
+ async def foo():
+ yield
+
+ async def foo():
+ yield from []
+
+ async def foo():
+ await await fut
""")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit