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

Fred L. Drake python-dev@python.org
Sat, 06 Jan 2001 22:02:21 -0800


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv13664/Lib/test/output

Modified Files:
	test_parser 
Log Message:

Add more regression tests, including for the import statement variations.
These will detect regression on SF bug #127271 and other import statement
bugs.


Index: test_parser
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_parser,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_parser	2000/12/11 22:12:09	1.3
--- test_parser	2001/01/07 06:02:19	1.4
***************
*** 51,55 ****
--- 51,80 ----
  suite: a **= b
  suite: def f(): pass
+ suite: def f(*args): pass
+ suite: def f(*args, **kw): pass
+ suite: def f(**kw): pass
  suite: def f(foo=bar): pass
+ suite: def f(foo=bar, *args): pass
+ suite: def f(foo=bar, *args, **kw): pass
+ suite: def f(foo=bar, **kw): pass
+ suite: def f(a, b): pass
+ suite: def f(a, b, *args): pass
+ suite: def f(a, b, *args, **kw): pass
+ suite: def f(a, b, **kw): pass
+ suite: def f(a, b, foo=bar): pass
+ suite: def f(a, b, foo=bar, *args): pass
+ suite: def f(a, b, foo=bar, *args, **kw): pass
+ suite: def f(a, b, foo=bar, **kw): pass
+ suite: from sys.path import *
+ suite: from sys.path import dirname
+ suite: from sys.path import dirname as my_dirname
+ suite: from sys.path import dirname, basename
+ suite: from sys.path import dirname as my_dirname, basename
+ suite: from sys.path import dirname, basename as my_basename
+ suite: import sys
+ suite: import sys as system
+ suite: import sys, math
+ suite: import sys as system, math
+ suite: import sys, math as my_math
  
  Invalid parse trees: