summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-03 20:28:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-10-03 20:28:47 (GMT)
commit4fac70683366ff65cdc3acf609246bf69c8ff61b (patch)
tree534575ad2b8f6a148aacf4a07744a189ec447f7e /Lib
parent01c549642a2b9e11c745e3572a8801dcc580b2ae (diff)
downloadcpython-4fac70683366ff65cdc3acf609246bf69c8ff61b.zip
cpython-4fac70683366ff65cdc3acf609246bf69c8ff61b.tar.gz
cpython-4fac70683366ff65cdc3acf609246bf69c8ff61b.tar.bz2
Merged revisions 75224 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75224 | benjamin.peterson | 2009-10-03 15:27:13 -0500 (Sat, 03 Oct 2009) | 9 lines 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')
-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 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