PY-28321 Revert source root order for imports

The commit reverts source root order respect for import statements thus
reopening PY-28321. The reason is that until pkg_resources and pkgutil
namespace packages are not implemented (see PY-16688, PY-23087) the
original fix leads to false positives in projects relying on this
functionality.

As soon as namespace packages support via pkg_resources and pkgutil will
 be implemented the change should be reverted back to close PY-28321.
This commit is contained in:
Anton Bragin
2018-04-03 19:00:01 +03:00
parent 99bd0d5cb3
commit 7da7b7ac36
2 changed files with 4 additions and 2 deletions
@@ -467,7 +467,8 @@ public class PyMultiFileResolveTest extends PyMultiFileResolveTestCase {
}
// PY-28321
public void testImportManySourceRootsReverseRootOrder() {
// TODO: The test should be turned on as soon as PY-16688 and PY-23087 are implemented
public void ignoreTestImportManySourceRootsReverseRootOrder() {
myFixture.copyDirectoryToProject("importManySourceRoots", "");
runWithSourceRoots(Lists.newArrayList(myFixture.findFileInTempDir("root1"), myFixture.findFileInTempDir("root2")), () -> {
final PsiFile psiFile = myFixture.configureByFile("root1/pkg/a.py");