summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-09 07:50:48 (GMT)
committerGeorg Brandl <georg@python.org>2011-01-09 07:50:48 (GMT)
commitefb6902c3df041c0b334ddc98434ca05db01c323 (patch)
tree182c7e82c21e5f08a63f763f4257789ea6d2201a /Lib/test
parent619e7ba8148cb9ebf11a1331c788b6713e88ca5d (diff)
downloadcpython-efb6902c3df041c0b334ddc98434ca05db01c323.zip
cpython-efb6902c3df041c0b334ddc98434ca05db01c323.tar.gz
cpython-efb6902c3df041c0b334ddc98434ca05db01c323.tar.bz2
Add missing line.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index 499facd..da07060 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -265,6 +265,7 @@ class ASTHelpers_Test(unittest.TestCase):
'col_offset=0))'
)
# issue10869: do not increment lineno of root twice
+ src = ast.parse('1 + 1', mode='eval')
self.assertEqual(ast.increment_lineno(src.body, n=3), src.body)
self.assertEqual(ast.dump(src, include_attributes=True),
'Expression(body=BinOp(left=Num(n=1, lineno=4, col_offset=0), '