Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

f-string parser: Fix error messages intest_unterminated_string #163

Open
@pablogsal

Description

@pablogsal

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp