Files
openide/python/testData/highlighting/breakInFinallyBlockBefore314.py
Pavel Karateevandintellij-monorepo-bot 2161d57862 [python] PY-83029 fix compatibility inspection tests
`testBreakInFinallyBlock` and `testReturnInFinallyBlock`
were testing vs. latest language level, so apart from
the compatibility warning (for which these tests are
intended) - a corresponding syntax error was captured

I made these tests to use a specific language level
so they only verify the correctness of the compatibility
inspection and introduced four tests in `PythonHighlightingTest`
to capture the syntax error


(cherry picked from commit 254570dc4d5022176590377eaf8ea6a08917937a)

IJ-MR-182362

GitOrigin-RevId: bd5798dffcd4723643e974534514d541efc06d9a
2025-12-01 22:15:44 +00:00

5 lines
54 B
Python

while True:
try:
print("a")
finally:
break