mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
3c1d2da94f
commit
0bdf5b4c7d
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user