Use ERROR_DEDENT instead of ERRORTOKEN for wrong dedents.

This commit is contained in:
Dave Halter committed 2017-07-19 20:15:06 +02:00
1 parent 569cb99ca7
commit 6876e1b7c0
9 files changed
+20 -31

No files matched your search

+1
View File
@@ -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):