Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
430a9f44
Commit
430a9f44
authored
Jul 09, 2019
by
Carl Friedrich Bolz-Tereick
Committed by
Ivan Levkivskyi
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-18374: fix tests to check the correct thing about line numbers (GH-14659)
parent
61b1bc56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_ast.py
Lib/test/test_ast.py
+4
-4
No files found.
Lib/test/test_ast.py
View file @
430a9f44
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment