diff options
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r-- | Lib/test/test_compiler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 9976a47..d9a3cb8 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","<string>","exec") + def testLineNo(self): # Test that all nodes except Module have a correct lineno attribute. filename = __file__ |