mirror of https://github.com/python/cpython
bpo-18374: fix tests to check the correct thing about line numbers (GH-14659)
This commit is contained in:
parent
61b1bc5606
commit
430a9f44fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue