[Python-checkins] CVS: python/dist/src/Lib/test test_grammar.py,1.15,1.16

Skip Montanaro python-dev@python.org
Mon, 21 Aug 2000 19:43:09 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4225/Lib/test

Modified Files:
	test_grammar.py 
Log Message:
require list comprehensions to start with a for clause


Index: test_grammar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grammar.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** test_grammar.py	2000/08/21 15:46:24	1.15
--- test_grammar.py	2000/08/22 02:43:07	1.16
***************
*** 579,582 ****
--- 579,588 ----
      print "good: got a SyntaxError as expected"
  
+ try:
+     eval("[x if y]")
+     print "FAIL: should have raised a SyntaxError!"
+ except SyntaxError:
+         print "good: got a SyntaxError as expected"
+ 
  suppliers = [
    (1, "Boeing"),