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 fortest_conversions #159

Open
@pablogsal

Description

@pablogsal

Intest_fstring thetest_conversions test is failing due to what seems a mismatched error message but it may very well be a problem in the tokenizer. We need to investigate and either fix the tokenizer or update the test error messages. Example failure:

FAIL: test_conversions (test.test_fstring.TestCase) (str="f'{3!ss:s}'")\n----------------------------------------------------------------------  File "<string>", line 1    f'{3!ss:s}'         ^SyntaxError: Invalid conversion characterDuring 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: expecting '}'" does not match "Invalid conversion character (<string>, line 1)"

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