diff options
author | Brett Cannon <bcannon@gmail.com> | 2005-04-09 01:27:37 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2005-04-09 01:27:37 (GMT) |
commit | 4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae (patch) | |
tree | 885ffe86e03e5fbe0a67009e3d1fb2bb38f02220 | |
parent | da524a9d30fe180e83b87d82713d538933e03ca2 (diff) | |
download | cpython-4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae.zip cpython-4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae.tar.gz cpython-4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae.tar.bz2 |
Add test for ``class B1(): pass``.
-rw-r--r-- | Lib/test/test_grammar.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |