Added circular import resolution test that now passes.

This commit is contained in:
Dmitry Cheryasov
2008-08-10 08:03:18 +04:00
parent 33e8f66911
commit 6c2c2f1ea6
5 changed files with 13 additions and 3 deletions
@@ -0,0 +1,4 @@
import x
x.y.z.token
# <ref>
@@ -0,0 +1,2 @@
import y
X = "X"
@@ -0,0 +1,3 @@
import z
Y="Y"
@@ -0,0 +1,3 @@
import x
token="Z"
@@ -89,14 +89,12 @@ public class PyMultiFileResolveTest extends CodeInsightTestCase {
assertTrue(element instanceof PyFunction);
}
/*
// Currently fails due to inadequate stubs
public void testCircularImport() throws Exception {
PsiElement element = doResolve();
assertTrue(element instanceof PyTargetExpression);
}
*/
private PsiElement doResolve() throws Exception {
String testName = getTestName(true);