Files
openide/python/testData/highlighting/fStringBackslashesBefore312.py
Mikhail Golubevandintellij-monorepo-bot 414a30ea9a 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.

GitOrigin-RevId: 6f14435b62eda673165d89f005fbcc4ceb810dc7
2025-04-28 19:14:39 +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>