mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-23 11:32:25 +08:00
Use ERROR_DEDENT instead of ERRORTOKEN for wrong dedents.
This commit is contained in:
@@ -45,6 +45,7 @@ def test_syntax_errors(code, positions):
|
||||
@pytest.mark.parametrize(
|
||||
('code', 'positions'), [
|
||||
(' 1', [(1, 0)]),
|
||||
('def x():\n 1\n 2', [(3, 0)]),
|
||||
]
|
||||
)
|
||||
def test_indentation_errors(code, positions):
|
||||
|
||||
Reference in New Issue
Block a user