summaryrefslogtreecommitdiff
path: root/tests/basics/assign_expr_syntaxerror.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/assign_expr_syntaxerror.py')
-rw-r--r--tests/basics/assign_expr_syntaxerror.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/assign_expr_syntaxerror.py b/tests/basics/assign_expr_syntaxerror.py
index 11b350129..0c334d075 100644
--- a/tests/basics/assign_expr_syntaxerror.py
+++ b/tests/basics/assign_expr_syntaxerror.py
@@ -8,9 +8,9 @@ def test(code):
test("x := 1")
test("((x, y) := 1)")
-
-# these are currently all allowed in MicroPython, but not in CPython
test("([i := i + 1 for i in range(4)])")
test("([i := -1 for i, j in [(1, 2)]])")
test("([[(i := j) for i in range(2)] for j in range(2)])")
+
+# this is currently allowed in MicroPython, but not in CPython
test("([[(j := i) for i in range(2)] for j in range(2)])")