diff options
author | Georg Brandl <georg@python.org> | 2008-03-30 19:00:49 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-30 19:00:49 (GMT) |
commit | 2c55c597faf023a0b74aa48f911493c010f464c5 (patch) | |
tree | 8f305d3e6c0249eaac509b797ce8956357c9127a /Lib/test/test_ast.py | |
parent | ebc8dedd1996db68c889c2cdf2701fd7eadc501f (diff) | |
download | cpython-2c55c597faf023a0b74aa48f911493c010f464c5.zip cpython-2c55c597faf023a0b74aa48f911493c010f464c5.tar.gz cpython-2c55c597faf023a0b74aa48f911493c010f464c5.tar.bz2 |
Make _fields attr for no fields consistent with _attributes attr.
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r-- | Lib/test/test_ast.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 4184bc6..e068b0a 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -163,6 +163,9 @@ class AST_Tests(unittest.TestCase): self.assertEquals(x.right, 3) self.assertEquals(x.lineno, 0) + # this used to fail because Sub._fields was None + x = _ast.Sub() + def test_main(): test_support.run_unittest(AST_Tests) |