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
........
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 @@
>>> 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