summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-03 20:23:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-10-03 20:23:24 (GMT)
commit7adbb5a35da601fc68255eeaf341ad734e86a9bf (patch)
tree0b5505e6b465b27e5ecd5f523c9d9e7a6aa1b1c3 /Lib/test
parent3b34dd871a3d17aa382d4ca22488671afe0c4c03 (diff)
downloadcpython-7adbb5a35da601fc68255eeaf341ad734e86a9bf.zip
cpython-7adbb5a35da601fc68255eeaf341ad734e86a9bf.tar.gz
cpython-7adbb5a35da601fc68255eeaf341ad734e86a9bf.tar.bz2
#7050 fix a SystemError when using tuple unpacking and augmented assignment
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_augassign.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py
index 24aa2b7..a5b7cc4 100644
--- a/Lib/test/test_augassign.py
+++ b/Lib/test/test_augassign.py
@@ -24,6 +24,9 @@ class AugAssignTest(unittest.TestCase):
# new-style division (with -Qnew)
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