Better matching syntax errors.

This commit is contained in:
Dave Halter
2017-07-19 20:56:31 +02:00
parent 756587ae4a
commit 65df539e97
2 changed files with 8 additions and 5 deletions

View File

@@ -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',