fixed failed tests and added test for PY-4027

This commit is contained in:
Ekaterina Tuzova
2011-06-28 20:54:47 +04:00
parent f293151698
commit 6eb9420291
@@ -108,8 +108,14 @@ public class PyMissingConstructorInspection extends PyInspection {
PyExpression[] args = ((PyCallExpression)qualifier).getArguments();
if (args.length > 0) {
if (args[0].getText().equals(cl.getName()))
return true;
return true;
for (PyClass s : cl.iterateAncestorClasses()) {
if (args[0].getText().equals(s.getName()))
return true;
}
}
else
return true;
}
}
else {