mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 10:39:51 +07:00
`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: fb9c92923820b370672451c5753ee24bdd5a4570
5 lines
146 B
Python
5 lines
146 B
Python
while True:
|
|
try:
|
|
print("a")
|
|
finally:
|
|
<error descr="Python version 3.14 does not support 'break' inside 'finally' clause">break</error> |