mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-04 00:43:43 +08:00
Use ERROR_DEDENT instead of ERRORTOKEN for wrong dedents.
This commit is contained in:
1 parent
569cb99ca7
commit
6876e1b7c0
9 files changed
+20
-31
No files matched your search
@@ -112,7 +112,6 @@ def test_ellipsis_py2(each_py2_version):
|
||||
module = parse('[0][...]', version=each_py2_version, error_recovery=False)
|
||||
expr = module.children[0]
|
||||
trailer = expr.children[-1]
|
||||
print(expr)
|
||||
subscript = trailer.children[1]
|
||||
assert subscript.type == 'subscript'
|
||||
assert [leaf.value for leaf in subscript.children] == ['.', '.', '.']
|
||||
Reference in new issue
Block a user