forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork0
Open
Labels
Description
The error messages intest_unterminated_string
need updating:
FAIL: test_unterminated_string (test.test_fstring.TestCase) (str='f\'{("x}\'')\n---------------------------------------------------------------------- File "<string>", line 1 f'{("x}' ^SyntaxError: unterminated string literal (detected at line 1)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/pablogsal/github/python/f-string-grammar/Lib/test/test_fstring.py", line 32, in assertAllRaise with self.assertRaisesRegex(exception_type, regex): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: "f-string: unterminated string" does not match "unterminated string literal (detected at line 1) (<string>, line 1)"
There is a bunch of them that need also updating intest_missing_expression
but we need to check first if we need to change the error we emit in the tokenizer