summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-04-09 02:30:16 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-04-09 02:30:16 (GMT)
commitf4189916e366045a44755d453c89d30e5006f84f (patch)
treefb55a279fc5275a7403f523fb546f19baa4c6e17 /Lib/test/test_compiler.py
parent4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae (diff)
downloadcpython-f4189916e366045a44755d453c89d30e5006f84f.zip
cpython-f4189916e366045a44755d453c89d30e5006f84f.tar.gz
cpython-f4189916e366045a44755d453c89d30e5006f84f.tar.bz2
Flush out support for ``class B(): pass`` syntax by adding support to the
'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix.
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r--Lib/test/test_compiler.py3
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__