diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-10-03 20:27:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-10-03 20:27:13 (GMT) |
commit | bd27aef8a0f776cc72387be31e1e74ecbcbbdf54 (patch) | |
tree | 8a9d5e2c6806d487004caea2bf891fd0644f0ec4 /Lib/test/test_augassign.py | |
parent | 8504d085b7e5ae7dd75ad83fef5e79669d297fc4 (diff) | |
download | cpython-bd27aef8a0f776cc72387be31e1e74ecbcbbdf54.zip cpython-bd27aef8a0f776cc72387be31e1e74ecbcbbdf54.tar.gz cpython-bd27aef8a0f776cc72387be31e1e74ecbcbbdf54.tar.bz2 |
Merged revisions 75223 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75223 | benjamin.peterson | 2009-10-03 15:23:24 -0500 (Sat, 03 Oct 2009) | 1 line
#7050 fix a SystemError when using tuple unpacking and augmented assignment
........
Diffstat (limited to 'Lib/test/test_augassign.py')
-rw-r--r-- | Lib/test/test_augassign.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py index 8567821..e1b6e27 100644 --- a/Lib/test/test_augassign.py +++ b/Lib/test/test_augassign.py @@ -19,6 +19,9 @@ class AugAssignTest(unittest.TestCase): x /= 2 self.assertEquals(x, 3.0) + def test_with_unpacking(self): + self.assertRaises(SyntaxError, compile, "x, b += 3", "<test>", "exec") + def testInList(self): x = [2] x[0] += 1 |