[Python-checkins] cpython (3.2): every other ast object has a dict, so I think AST should, too

benjamin.peterson python-checkins at python.org
Mon Mar 12 17:56:04 CET 2012


http://hg.python.org/cpython/rev/15550b5777b9
changeset:   75536:15550b5777b9
branch:      3.2
parent:      75524:41b1fe5a75a6
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Mar 12 09:27:36 2012 -0700
summary:
  every other ast object has a dict, so I think AST should, too

files:
  Lib/test/test_ast.py |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -196,9 +196,6 @@
             x.vararg
 
         with self.assertRaises(AttributeError):
-            x.foobar = 21
-
-        with self.assertRaises(AttributeError):
             ast.AST(lineno=2)
 
         with self.assertRaises(TypeError):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list