[Python-checkins] CVS: python/dist/src/Lib/test/output test_parser,1.2,1.3

Fred L. Drake python-dev@python.org
Mon, 11 Dec 2000 14:12:12 -0800


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

Modified Files:
	test_parser 
Log Message:

Added tests to avoid regression on bug #125375.

roundtrip():  Show the offending syntax tree when things break; this makes
              it a little easier to debug the module by adding test cases.

(Still need better tests for this module, but there's not enough time
 today.)


Index: test_parser
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_parser,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_parser	2000/08/25 22:42:40	1.2
--- test_parser	2000/12/11 22:12:09	1.3
***************
*** 16,19 ****
--- 16,31 ----
  expr: foo(a, b, c, **kw)
  expr: foo + bar
+ expr: lambda: 0
+ expr: lambda x: 0
+ expr: lambda *y: 0
+ expr: lambda *y, **z: 0
+ expr: lambda **z: 0
+ expr: lambda x, y: 0
+ expr: lambda foo=bar: 0
+ expr: lambda foo=bar, spaz=nifty+spit: 0
+ expr: lambda foo=bar, **z: 0
+ expr: lambda foo=bar, blaz=blat+2, **z: 0
+ expr: lambda foo=bar, blaz=blat+2, *y, **z: 0
+ expr: lambda x, *y, **z: 0
  
  Statements:
***************
*** 38,41 ****
--- 50,55 ----
  suite: a >>= b
  suite: a **= b
+ suite: def f(): pass
+ suite: def f(foo=bar): pass
  
  Invalid parse trees: