summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-07-04 16:39:03 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-07-04 16:39:03 (GMT)
commita441e6465a26b00730cbeae09cf89bcfba6a7c78 (patch)
treea6b5f51a343bc8afc4c1dbf965a016d5a7a78735 /Lib
parent775695ad0354aea8248a0d237c38f63649639e1a (diff)
downloadcpython-a441e6465a26b00730cbeae09cf89bcfba6a7c78.zip
cpython-a441e6465a26b00730cbeae09cf89bcfba6a7c78.tar.gz
cpython-a441e6465a26b00730cbeae09cf89bcfba6a7c78.tar.bz2
Merged revisions 82537 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82537 | mark.dickinson | 2010-07-04 17:37:31 +0100 (Sun, 04 Jul 2010) | 2 lines Issue #9128: Fix validation of class decorators in parser module. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 9c73b99..3a7bbe9 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -150,6 +150,13 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
def test_class_defs(self):
self.check_suite("class foo():pass")
self.check_suite("class foo(object):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 *")