Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef87f06

Browse files
committed
allow AST objects to be like its subclasses
1 parent 800b3aa commit ef87f06

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/test/test_ast.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ def test_AST_objects(self):
195195
with self.assertRaises(AttributeError):
196196
x.vararg
197197

198-
with self.assertRaises(AttributeError):
199-
ast.AST(lineno=2)
200-
201198
with self.assertRaises(TypeError):
202199
# "_ast.AST constructor takes 0 positional arguments"
203200
ast.AST(2)

0 commit comments

Comments
 (0)