mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-83529 Make type name reasonable (PyModuleType, PyImportedModuleType)
(cherry picked from commit a5f8641bcae3cd01eb7ff174e289cbf3ca5e3b2b) GitOrigin-RevId: 41050e03a015e79c74ff54a390090e5e5f70d783
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3a58a09cbe
commit
c1c6c8c945
@@ -4184,11 +4184,11 @@ public class Py3TypeTest extends PyTestCase {
|
||||
String testDir = TEST_DIRECTORY + getTestName(false);
|
||||
runWithAdditionalClassEntryInSdkRoots(testDir + "/site-packages", () -> {
|
||||
runWithAdditionalClassEntryInSdkRoots(testDir + "/python_stubs", () -> {
|
||||
doTest("imported module pkg", """
|
||||
doTest("pkg", """
|
||||
import pkg.subpkg
|
||||
expr = pkg
|
||||
""");
|
||||
doTest("__init__.py", """
|
||||
doTest("pkg.subpkg", """
|
||||
import pkg.subpkg
|
||||
expr = pkg.subpkg
|
||||
""");
|
||||
|
||||
@@ -2869,14 +2869,14 @@ public class PyTypeTest extends PyTestCase {
|
||||
|
||||
// PY-25751
|
||||
public void testNotImportedModuleInDunderAll() {
|
||||
doMultiFileTest("Union[aaa.py, Any]",
|
||||
doMultiFileTest("Union[pkg.aaa, Any]",
|
||||
"from pkg import *\n" +
|
||||
"expr = aaa");
|
||||
}
|
||||
|
||||
// PY-25751
|
||||
public void testNotImportedPackageInDunderAll() {
|
||||
doMultiFileTest("Union[__init__.py, Any]",
|
||||
doMultiFileTest("Union[pkg.aaa, Any]",
|
||||
"from pkg import *\n" +
|
||||
"expr = aaa");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user