mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 05:34:51 +08:00
Revision on fstring issues (#100)
* f-string expression part cannot include a backslash
* failing example `f"{'\n'}"` for tests
This commit is contained in:
@@ -281,6 +281,9 @@ if sys.version_info >= (3, 6):
|
||||
# Same as above, but for f-strings.
|
||||
'f"s" b""',
|
||||
'b"s" f""',
|
||||
|
||||
# f-string expression part cannot include a backslash
|
||||
r'''f"{'\n'}"''',
|
||||
]
|
||||
FAILING_EXAMPLES.append('[a, 1] += 3')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user