diff options
Diffstat (limited to 'Cython/Tests/TestCodeWriter.py')
-rw-r--r-- | Cython/Tests/TestCodeWriter.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Cython/Tests/TestCodeWriter.py b/Cython/Tests/TestCodeWriter.py index 2f9ee6179..c8bddd0bf 100644 --- a/Cython/Tests/TestCodeWriter.py +++ b/Cython/Tests/TestCodeWriter.py @@ -68,10 +68,19 @@ class TestCodeWriter(CythonTest): else: print(43) """) + self.t(u""" + for abc in (1, 2, 3): + print(x, y, z) + else: + print(43) + """) def test_inplace_assignment(self): self.t(u"x += 43") + def test_cascaded_assignment(self): + self.t(u"x = y = z = abc = 43") + def test_attribute(self): self.t(u"a.x") |