PY-21224 Fixed: False positive unresolved base method when using six.with_metaclass() and multiple inheritance

Support metaclass and several base classes in six.with_metaclass
This commit is contained in:
Semyon Proshev
2016-11-23 14:37:35 +03:00
parent 0935834d85
commit a0d7707e84
7 changed files with 141 additions and 25 deletions
@@ -65,7 +65,11 @@ public class PyClassMROTest extends PyTestCase {
}
public void testSixWithMetaclass() {
assertMRO(getClass("C"), "B", "object");
assertMRO(getClass("C"), "B", "D", "object");
}
public void testSixWithMetaclassWithAs() {
assertMRO(getClass("C"), "B", "D", "object");
}
// PY-4183
@@ -734,6 +734,11 @@ public class PyUnresolvedReferencesInspectionTest extends PyInspectionTestCase {
doMultiFileTest();
}
// PY-21224
public void testSixWithMetaclass() {
doTest();
}
@NotNull
@Override
protected Class<? extends PyInspection> getInspectionClass() {