fixup! PY-86002 Disable "python.typing.strict.unions" and revert the tests updated for PY-24834 in 253

Revert the revert of test changes that are not directly related to strict unions.


(cherry picked from commit 8a76bd91e040ad97e8ed680161f28370c84920f8)

IJ-MR-184619

GitOrigin-RevId: 4c293de3ecc3c8cb16869532fccc639e8c5a17ae
This commit is contained in:
Mikhail Golubev
2025-12-03 20:58:50 +00:00
committed by intellij-monorepo-bot
parent 3c1d2da94f
commit 0bdf5b4c7d
2 changed files with 4 additions and 4 deletions
@@ -5,7 +5,7 @@ def f(x):
def f(x):
try:
from <error descr="Unresolved reference 'foo'">foo</error> import <warning descr="Module 'StringIO' not found">StringIO</warning>
from <error descr="Unresolved reference 'foo'">foo</error> import <weak_warning descr="Module 'StringIO' not found">StringIO</weak_warning>
except Exception:
pass
return x
@@ -28,14 +28,14 @@ def f(x):
try:
import foo as bar
except ImportError:
import <warning descr="Module 'bar' not found">bar</warning>
import <weak_warning descr="Module 'bar' not found">bar</weak_warning>
# PY-3678
def f():
try:
from foo import bar #pass
except ImportError:
import <warning descr="Module 'bar' not found">bar</warning> #fail
import <weak_warning descr="Module 'bar' not found">bar</weak_warning> #fail
finally:
pass