mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Test for unresolved attributes of base class assigned to a variable (PY-5427)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class A(object):
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
|
||||
C = A
|
||||
|
||||
|
||||
class B(C):
|
||||
pass
|
||||
|
||||
|
||||
b = B()
|
||||
b.foo() #pass
|
||||
+5
@@ -232,6 +232,11 @@ public class PyUnresolvedReferencesInspectionTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
// PY-5427
|
||||
public void testBaseClassAssignment() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
myFixture.configureByFile(TEST_DIRECTORY + getTestName(true) + ".py");
|
||||
myFixture.enableInspections(PyUnresolvedReferencesInspection.class);
|
||||
|
||||
Reference in New Issue
Block a user