From: Benjamin Peterson Date: Mon, 12 Mar 2012 16:43:09 +0000 (-0700) Subject: allow AST objects to be like its subclasses X-Git-Tag: v3.3.0a2~234^2~15^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef87f067982dede91aca3d7954b992b860d8a254;p=thirdparty%2FPython%2Fcpython.git allow AST objects to be like its subclasses --- diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 10be487bf7df..f4ce615ad8fa 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -195,9 +195,6 @@ class AST_Tests(unittest.TestCase): with self.assertRaises(AttributeError): x.vararg - with self.assertRaises(AttributeError): - ast.AST(lineno=2) - with self.assertRaises(TypeError): # "_ast.AST constructor takes 0 positional arguments" ast.AST(2)