mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix PyInlineLocalTest?
This commit is contained in:
@@ -23,9 +23,13 @@ public class PyInlineLocalTest extends LightMarkedTestCase {
|
||||
try {
|
||||
PsiElement element = map.values().iterator().next().getParent();
|
||||
PyReferenceExpression ref = null;
|
||||
if (element instanceof PyReferenceExpression) {
|
||||
while (element instanceof PyReferenceExpression) {
|
||||
ref = (PyReferenceExpression)element;
|
||||
element = ((PyReferenceExpression)element).getReference().resolve();
|
||||
PsiElement newElement = ((PyReferenceExpression)element).getReference().resolve();
|
||||
if (element == newElement) {
|
||||
break;
|
||||
}
|
||||
element = newElement;
|
||||
}
|
||||
PyInlineLocalHandler.invoke(myFixture.getProject(), myFixture.getEditor(), (PyTargetExpression)element, ref);
|
||||
if (expectedError != null) fail("expected error: '" + expectedError + "', got none");
|
||||
|
||||
Reference in New Issue
Block a user