mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
allow AST objects to be like its subclasses
This commit is contained in:
parent
800b3aa57f
commit
ef87f06798
1 changed files with 0 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue