mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Remove dedents from the parser tree. No need for them.
This commit is contained in:
@@ -177,9 +177,7 @@ def test_end_pos_error_correction():
|
||||
m = ParserWithRecovery(load_grammar(), s).module
|
||||
func = m.children[0]
|
||||
assert func.type == 'funcdef'
|
||||
# This is not exactly correct, but ok, because it doesn't make a difference
|
||||
# at all. We just want to make sure that the module end_pos is correct!
|
||||
assert func.end_pos == (3, 0)
|
||||
assert func.end_pos == (2, 2)
|
||||
assert m.end_pos == (2, 2)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user