diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-06-24 00:12:40 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-06-24 00:12:40 (GMT) | 
| commit | 947ce58a9018d23cb1e5e8de550f2ba0e542248e (patch) | |
| tree | 3832acdc851f879c0d8a3705d3500cb4205e5bf6 /Lib/test/test_syntax.py | |
| parent | 5c995c10d45a7915b5ea0bb02d114b2579eef04e (diff) | |
| download | cpython-947ce58a9018d23cb1e5e8de550f2ba0e542248e.zip cpython-947ce58a9018d23cb1e5e8de550f2ba0e542248e.tar.gz cpython-947ce58a9018d23cb1e5e8de550f2ba0e542248e.tar.bz2  | |
prevent assignment to set literals
Diffstat (limited to 'Lib/test/test_syntax.py')
| -rw-r--r-- | Lib/test/test_syntax.py | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 899db61..4992a32 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -468,6 +468,12 @@ 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): +   ... +   File "<doctest test.test_syntax[50]>", line 1 +SyntaxError: can't assign to literal +  """  import re  | 
