From 4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 9 Apr 2005 01:27:37 +0000 Subject: Add test for ``class B1(): pass``. --- Lib/test/test_grammar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 7f5d10d..1b4a506 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 -- cgit v0.12