Files
openide/python/testData/highlighting/fStringBackslashesBefore312.py
Mikhail Golubev a2b4a71ee3 PY-79967 Fix a test broken due to the new t-string prefix
\t' at the end of an invalid f-string started being recognized as a new t-string start.
I've replaced it with another escape sequence, not losing the test's idea.

(cherry picked from commit 6f14435b62eda673165d89f005fbcc4ceb810dc7)

GitOrigin-RevId: 719049691d8aaf864c322e3ab4c5dd42e71fb180
2025-05-09 11:12:01 +00:00

7 lines
1.1 KiB
Python

f'{<error descr="Expression expected"><error descr="Python version 3.6 does not allow backslashes inside expression parts of f-strings">\</error>t</error>}'
f'{<error descr="Expression expected"><error descr="Python version 3.6 does not allow backslashes inside expression parts of f-strings">\</error>N{GREEK SMALL LETTER ALPHA}</error>}'
f'{Formatable():\n\t}'
f'{42:{<error descr="Expression expected"><error descr="Python version 3.6 does not allow backslashes inside expression parts of f-strings">\</error>t</error>}}'
f'{f"""{"<error descr="Python version 3.6 does not allow backslashes inside expression parts of f-strings">\</error>n"}"""}'
f'{<error descr="Expression expected"><error descr="Python version 3.6 does not allow backslashes inside expression parts of f-strings">\</error>n<error descr="Python version 3.6 does not allow nesting of string literals with the same quote type inside f-strings">'</error><error descr="Python version 3.6 does not allow new lines in expression parts of non-triple-quoted f-strings">
</error></error><EOLError descr="Type conversion, ':' or '}' expected"></EOLError><EOLError descr="' expected"></EOLError>