mirror of https://github.com/python/cpython
allow AST objects to be like its subclasses
This commit is contained in:
parent
800b3aa57f
commit
ef87f06798
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue