diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-24 00:17:03 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-24 00:17:03 (GMT) |
commit | 1b1a1a4bce3283a1d63b5db2ab16696fed791213 (patch) | |
tree | 4fa4eb7a980fd6d3b6a363ee30308c625c5d5e35 /Lib | |
parent | 5e307de6e008d712f697dfcbc5a63c802b12e433 (diff) | |
download | cpython-1b1a1a4bce3283a1d63b5db2ab16696fed791213.zip cpython-1b1a1a4bce3283a1d63b5db2ab16696fed791213.tar.gz cpython-1b1a1a4bce3283a1d63b5db2ab16696fed791213.tar.bz2 |
Merged revisions 82189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82189 | benjamin.peterson | 2010-06-23 19:12:40 -0500 (Wed, 23 Jun 2010) | 1 line
prevent assignment to set literals
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_syntax.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index f422d2d..be2a0a2 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -478,10 +478,12 @@ SyntaxError: keyword argument repeated >>> del () Traceback (most recent call last): - ... - File "<doctest test.test_syntax[50]>", line 1 SyntaxError: can't delete () +>>> {1, 2, 3} = 42 +Traceback (most recent call last): +SyntaxError: can't assign to literal + """ import re |