summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-12 16:43:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-12 16:43:09 (GMT)
commitef87f067982dede91aca3d7954b992b860d8a254 (patch)
tree3d8ac17e972066da736c98632a903409129f16f7
parent800b3aa57f073403ed2b64c49058e9b88ba582d3 (diff)
downloadcpython-ef87f067982dede91aca3d7954b992b860d8a254.zip
cpython-ef87f067982dede91aca3d7954b992b860d8a254.tar.gz
cpython-ef87f067982dede91aca3d7954b992b860d8a254.tar.bz2
allow AST objects to be like its subclasses
-rw-r--r--Lib/test/test_ast.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index 10be487..f4ce615 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)