From 650f0d06d3574f843f52edd1126ddd9ebd6fac7d Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 15 Apr 2007 12:05:43 +0000 Subject: Hide list comp variables and support set comprehensions --- Lib/test/test_syntax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_syntax.py') diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index f37b666676..b21f6cf92a 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -5,7 +5,7 @@ Here's an example of the sort of thing that is tested. >>> def f(x): ... global x Traceback (most recent call last): -SyntaxError: name 'x' is local and global +SyntaxError: name 'x' is parameter and global The tests are all raise SyntaxErrors. They were created by checking each C call that raises SyntaxError. There are several modules that @@ -373,7 +373,7 @@ Misuse of the nonlocal statement can lead to a few unique syntax errors. ... nonlocal x Traceback (most recent call last): ... - SyntaxError: name 'x' is local and nonlocal + SyntaxError: name 'x' is parameter and nonlocal >>> def f(): ... global x -- cgit v1.2.1