mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Check if import source is located in the same package or above (PY-26139)
This commit is contained in:
@@ -84,6 +84,16 @@ public class PyProtectedMemberInspectionTest extends PyInspectionTestCase {
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON36, this::doTest);
|
||||
}
|
||||
|
||||
// PY-26139
|
||||
public void testProtectedModuleInSamePackage() {
|
||||
doMultiFileTest("my_package/module2.py");
|
||||
}
|
||||
|
||||
// PY-26139
|
||||
public void testProtectedModuleInPackageAbove() {
|
||||
doMultiFileTest("my_package/my_subpackage/module2.py");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected Class<? extends PyInspection> getInspectionClass() {
|
||||
|
||||
Reference in New Issue
Block a user