[python] PY-83029 fix tests

(cherry picked from commit 64d9931ee762c8ac801114e22952f3086235467a)

IJ-MR-182362

GitOrigin-RevId: bcf515ae4f73cd3d44dc81a54c1acd1fbfb33c18
This commit is contained in:
Pavel Karateev
2025-12-02 11:21:12 +00:00
committed by intellij-monorepo-bot
parent a73f46edce
commit b257c225d2
26 changed files with 50 additions and 50 deletions
@@ -27,7 +27,7 @@ public class Py3CompatibilityInspectionTest extends PyInspectionTestCase {
try:
print("a")
finally:
<error descr="Python version 3.14 does not support 'break' inside 'finally' clause">break</error>"""
<error descr="Python version 3.15 does not support 'break' inside 'finally' clause">break</error>"""
);
}
@@ -38,7 +38,7 @@ public class Py3CompatibilityInspectionTest extends PyInspectionTestCase {
try:
pass
finally:
<error descr="Python version 3.14 does not support 'return' inside 'finally' clause">return</error>"""
<error descr="Python version 3.15 does not support 'return' inside 'finally' clause">return</error>"""
);
}
@@ -266,7 +266,7 @@ public class PyCompatibilityInspectionTest extends PyInspectionTestCase {
try:
print("a")
finally:
<warning descr="Python versions 2.7, 3.7, 3.14 do not support 'continue' inside 'finally' clause">continue</warning>""")
<warning descr="Python versions 2.7, 3.7, 3.14, 3.15 do not support 'continue' inside 'finally' clause">continue</warning>""")
);
}