From: Brett Cannon Date: Sat, 9 Apr 2005 01:27:37 +0000 (+0000) Subject: Add test for ``class B1(): pass``. X-Git-Tag: v2.5a0~1834 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae;p=thirdparty%2FPython%2Fcpython.git Add test for ``class B1(): pass``. --- diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 7f5d10d1e59b..1b4a506844d1 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -685,8 +685,9 @@ x = 123 ### 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