Commit 430a9f44 authored by Carl Friedrich Bolz-Tereick's avatar Carl Friedrich Bolz-Tereick Committed by Ivan Levkivskyi

bpo-18374: fix tests to check the correct thing about line numbers (GH-14659)

parent 61b1bc56
......@@ -598,14 +598,14 @@ class AST_Tests(unittest.TestCase):
self.assertEqual(parent_binop.end_lineno, 2)
self.assertEqual(child_binop.col_offset, 0)
self.assertEqual(parent_binop.lineno, 1)
self.assertEqual(child_binop.lineno, 1)
self.assertEqual(child_binop.end_col_offset, 2)
self.assertEqual(parent_binop.end_lineno, 2)
self.assertEqual(child_binop.end_lineno, 2)
self.assertEqual(grandchild_binop.col_offset, 0)
self.assertEqual(parent_binop.lineno, 1)
self.assertEqual(grandchild_binop.lineno, 1)
self.assertEqual(grandchild_binop.end_col_offset, 3)
self.assertEqual(parent_binop.end_lineno, 2)
self.assertEqual(grandchild_binop.end_lineno, 1)
class ASTHelpers_Test(unittest.TestCase):
maxDiff = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment