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

This commit is contained in:
Carl Friedrich Bolz-Tereick 2019-07-09 14:20:01 +02:00 committed by Ivan Levkivskyi
parent 61b1bc5606
commit 430a9f44fe
1 changed files with 4 additions and 4 deletions

View File

@ -598,14 +598,14 @@ class AST_Tests(unittest.TestCase):
self.assertEqual(parent_binop.end_lineno, 2) self.assertEqual(parent_binop.end_lineno, 2)
self.assertEqual(child_binop.col_offset, 0) 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(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(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(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): class ASTHelpers_Test(unittest.TestCase):
maxDiff = None maxDiff = None