mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Better matching syntax errors.
This commit is contained in:
@@ -56,6 +56,9 @@ def test_indentation_errors(code, positions):
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'code', [
|
||||
# SyntaxError
|
||||
'1 +',
|
||||
# IndentationError
|
||||
' foo',
|
||||
'def x():\n 1\n 2',
|
||||
'def x():\n 1\n 2',
|
||||
|
||||
Reference in New Issue
Block a user