[Python-checkins] CVS: python/dist/src/Lib/test/output test_grammar,1.14,1.15
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 19 Feb 2001 07:35:28 -0800
Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv2898/test/output
Modified Files:
test_grammar
Log Message:
Add test for syntax error on "x = 1 + 1".
Move check_syntax() function into test_support.
Index: test_grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_grammar,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** test_grammar 2001/02/09 22:56:46 1.14
--- test_grammar 2001/02/19 15:35:26 1.15
***************
*** 15,19 ****
funcdef
lambdef
- SyntaxError expected for "lambda x: x = 2"
simple_stmt
expr_stmt
--- 15,18 ----
***************
*** 27,32 ****
1 1 1
hello world
- SyntaxError expected for "print ,"
- SyntaxError expected for "print >> x,"
del_stmt
pass_stmt
--- 26,29 ----
***************
*** 63,67 ****
[(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')]
[0, 0, 0]
- SyntaxError expected for "[i, s for i in nums for s in strs]"
- SyntaxError expected for "[x if y]"
[('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]
--- 60,62 ----