commit | 7e0dbfbbdea946e620804641755686475652c9d0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Mar 12 09:46:44 2012 -0700 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Mar 12 09:46:44 2012 -0700 |
tree | e35bb7f1c8cbc8c0cd656a2ac9d54b5222f6f710 | |
parent | 61a4161de4075918c1ad5f225498171290454e5d [diff] |
give the AST class a __dict__
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index bac52be..064c669 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py
@@ -196,6 +196,9 @@ def test_AST_objects(self): x = ast.AST() self.assertEqual(x._fields, ()) + x.foobar = 42 + self.assertEqual(x.foobar, 42) + self.assertEqual(x.__dict__["foobar"], 42) with self.assertRaises(AttributeError): x.vararg