[Python-checkins] python/dist/src/Lib/test test_grammar.py, 1.51, 1.52

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Apr 9 03:27:40 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14958/Lib/test

Modified Files:
	test_grammar.py 
Log Message:
Add test for ``class B1(): pass``.


Index: test_grammar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grammar.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- test_grammar.py	31 Aug 2004 10:07:09 -0000	1.51
+++ test_grammar.py	9 Apr 2005 01:27:37 -0000	1.52
@@ -685,8 +685,9 @@
 ### testlist: test (',' test)* [',']
 # These have been exercised enough above
 
-print 'classdef' # 'class' NAME ['(' testlist ')'] ':' suite
+print 'classdef' # 'class' NAME ['(' [testlist] ')'] ':' suite
 class B: pass
+class B2(): pass
 class C1(B): pass
 class C2(B): pass
 class D(C1, C2, B): pass



More information about the Python-checkins mailing list