From 1b1a1a4bce3283a1d63b5db2ab16696fed791213 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 24 Jun 2010 00:17:03 +0000 Subject: [PATCH] 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 ........ --- Lib/test/test_syntax.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index f422d2df94a..be2a0a28e9c 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 "", line 1 SyntaxError: can't delete () +>>> {1, 2, 3} = 42 +Traceback (most recent call last): +SyntaxError: can't assign to literal + """ import re