mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
#7050 fix a SystemError when using tuple unpacking and augmented assignment
This commit is contained in:
parent
3b34dd871a
commit
7adbb5a35d
3 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue