[Python-checkins] python/dist/src/Lib/test test_parser.py,1.12,1.13

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 22 Aug 2002 12:43:53 -0700


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

Modified Files:
	test_parser.py 
Log Message:
Standardize behavior: no docstrings in test functions.


Index: test_parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_parser.py	23 Jul 2002 19:03:58 -0000	1.12
--- test_parser.py	22 Aug 2002 19:43:51 -0000	1.13
***************
*** 10,13 ****
--- 10,14 ----
  
  class RoundtripLegalSyntaxTestCase(unittest.TestCase):
+ 
      def roundtrip(self, f, s):
          st1 = f(s)
***************
*** 135,138 ****
--- 136,140 ----
  
  class IllegalSyntaxTestCase(unittest.TestCase):
+ 
      def check_bad_tree(self, tree, label):
          try:
***************
*** 148,152 ****
  
      def test_illegal_yield_1(self):
!         """Illegal yield statement: def f(): return 1; yield 1"""
          tree = \
          (257,
--- 150,154 ----
  
      def test_illegal_yield_1(self):
!         # Illegal yield statement: def f(): return 1; yield 1
          tree = \
          (257,
***************
*** 203,207 ****
  
      def test_illegal_yield_2(self):
!         """Illegal return in generator: def f(): return 1; yield 1"""
          tree = \
          (257,
--- 205,209 ----
  
      def test_illegal_yield_2(self):
!         # Illegal return in generator: def f(): return 1; yield 1
          tree = \
          (257,
***************
*** 267,271 ****
  
      def test_print_chevron_comma(self):
!         """Illegal input: print >>fp,"""
          tree = \
          (257,
--- 269,273 ----
  
      def test_print_chevron_comma(self):
!         # Illegal input: print >>fp,
          tree = \
          (257,
***************
*** 290,294 ****
  
      def test_a_comma_comma_c(self):
!         """Illegal input: a,,c"""
          tree = \
          (258,
--- 292,296 ----
  
      def test_a_comma_comma_c(self):
!         # Illegal input: a,,c
          tree = \
          (258,
***************
*** 317,321 ****
  
      def test_illegal_operator(self):
!         """Illegal input: a $= b"""
          tree = \
          (257,
--- 319,323 ----
  
      def test_illegal_operator(self):
!         # Illegal input: a $= b
          tree = \
          (257,