Use 'syntax' as rule name upon syntax errors

This commit is contained in:
Sylvestre Ledru
2019-12-17 19:29:49 +01:00
committed by Adrien Vergé
parent 8fa9eb3ced
commit 43b95e99d1
2 changed files with 2 additions and 2 deletions

View File

@@ -530,7 +530,7 @@ class CommandLineTestCase(unittest.TestCase):
out, err = sys.stdout.getvalue(), sys.stderr.getvalue()
self.assertEqual(out, (
'stdin:2:10: [error] syntax error: '
'mapping values are not allowed here\n'))
'mapping values are not allowed here (syntax)\n'))
self.assertEqual(err, '')
def test_run_no_warnings(self):