mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add missing line.
This commit is contained in:
parent
619e7ba814
commit
efb6902c3d
1 changed files with 1 additions and 0 deletions
|
@ -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), '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue