Commit ef87f067 authored by Benjamin Peterson's avatar Benjamin Peterson

allow AST objects to be like its subclasses

parent 800b3aa5
...@@ -195,9 +195,6 @@ class AST_Tests(unittest.TestCase): ...@@ -195,9 +195,6 @@ class AST_Tests(unittest.TestCase):
with self.assertRaises(AttributeError): with self.assertRaises(AttributeError):
x.vararg x.vararg
with self.assertRaises(AttributeError):
ast.AST(lineno=2)
with self.assertRaises(TypeError): with self.assertRaises(TypeError):
# "_ast.AST constructor takes 0 positional arguments" # "_ast.AST constructor takes 0 positional arguments"
ast.AST(2) ast.AST(2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment