summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/syntaxerror.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-11 12:30:32 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-11 12:30:32 +1100
commit5e22afce41de8c87071d8fc149a6ba3cd8762819 (patch)
treecc8960bfe8bb7949ad5dd6a099ae3e390cb58359 /tests/basics/syntaxerror.py
parente49153fb98ade48395b80271093bd763e771b3da (diff)
downloadmicropython-5e22afce41de8c87071d8fc149a6ba3cd8762819.tar.gz
micropython-5e22afce41de8c87071d8fc149a6ba3cd8762819.zip
tests: Improve test coverage of py/compile.c.
Diffstat (limited to 'tests/basics/syntaxerror.py')
-rw-r--r--tests/basics/syntaxerror.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/syntaxerror.py b/tests/basics/syntaxerror.py
index 2ae0183f8b..e5cbbac060 100644
--- a/tests/basics/syntaxerror.py
+++ b/tests/basics/syntaxerror.py
@@ -49,6 +49,9 @@ test_syntax("f[0]**2 = 1")
# can't assign to empty tuple
test_syntax("() = 1")
+# can't have *x on RHS
+test_syntax("x = *x")
+
# can't have multiple *x on LHS
test_syntax("*a, *b = c")
@@ -76,6 +79,7 @@ test_syntax("continue")
test_syntax("return")
test_syntax("yield")
test_syntax("nonlocal a")
+test_syntax("await 1")
# error on uPy, warning on CPy
#test_syntax("def f():\n a = 1\n global a")