diff options
| author | Brett Cannon <bcannon@gmail.com> | 2005-04-09 02:30:16 +0000 | 
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2005-04-09 02:30:16 +0000 | 
| commit | f4189916e366045a44755d453c89d30e5006f84f (patch) | |
| tree | fb55a279fc5275a7403f523fb546f19baa4c6e17 /Lib/test/test_parser.py | |
| parent | 4ebc7e3bd0a3ed0a56b1a0e5816127c18d2ae8ae (diff) | |
| download | cpython-git-f4189916e366045a44755d453c89d30e5006f84f.tar.gz | |
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_parser.py')
| -rw-r--r-- | Lib/test/test_parser.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index 0f8c1d0d0a..bd81aca217 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -127,6 +127,9 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):          self.check_suite("@funcattrs()\n"                           "def f(): pass") +    def test_class_defs(self): +        self.check_suite("class foo():pass") +              def test_import_from_statement(self):          self.check_suite("from sys.path import *")          self.check_suite("from sys.path import dirname")  | 
