mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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 ........ ................
This commit is contained in:
parent
01c549642a
commit
4fac706833
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue