Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_parser.py @ 62767:ecd71b6127e4 2.7
Issue #9128: Validate class decorator syntax correctly in parser module.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 04 Jul 2010 16:23:54 +0000 |
| parents | c5afe9552779 |
| children | 383039ef26a0 |
line wrap: on
line diff
--- a/Lib/test/test_parser.py Sun Jul 04 14:24:40 2010 +0000 +++ b/Lib/test/test_parser.py Sun Jul 04 16:23:54 2010 +0000 @@ -180,6 +180,14 @@ def test_class_defs(self): self.check_suite("class foo():pass") + self.check_suite("@class_decorator\n" + "class foo():pass") + self.check_suite("@class_decorator(arg)\n" + "class foo():pass") + self.check_suite("@decorator1\n" + "@decorator2\n" + "class foo():pass") + def test_import_from_statement(self): self.check_suite("from sys.path import *")
