From f4189916e366045a44755d453c89d30e5006f84f Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 9 Apr 2005 02:30:16 +0000 Subject: Flush out support for ``class B(): pass`` syntax by adding support to the 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix. --- Lib/test/test_compiler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/test/test_compiler.py') diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 9976a47cf3..d9a3cb8ee9 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -33,6 +33,9 @@ class CompilerTest(unittest.TestCase): else: compiler.compile(buf, basename, "exec") + def testNewClassSyntax(self): + compiler.compile("class foo():pass\n\n","","exec") + def testLineNo(self): # Test that all nodes except Module have a correct lineno attribute. filename = __file__ -- cgit v1.2.1