mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix test (call dispose() in finally)
GitOrigin-RevId: c0c8ce3f691fc09d728a347e2e364f14375422cf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
77488a9c3c
commit
d2cd69fc9e
@@ -142,12 +142,16 @@ public final class PythonUnitTestingTest extends PythonUnitTestingLikeTest<PyUni
|
||||
final Sdk sdk = createTempSdk(sdkHome, SdkCreationType.EMPTY_SDK);
|
||||
EdtTestUtil.runInEdtAndWait(() -> {
|
||||
final PythonConsoleView console = new PythonConsoleView(project, "test", sdk, true);
|
||||
Disposer.register(myFixture.getModule(), console);
|
||||
|
||||
console.getComponent(); //To init editor
|
||||
|
||||
Arrays.stream(messages).forEach((s) -> console.print(s, ConsoleViewContentType.NORMAL_OUTPUT));
|
||||
console.flushDeferredText();
|
||||
assertEquals("TC messages filtered in wrong way", "Hello\nI am\nPyCharm", console.getText());
|
||||
try {
|
||||
assertEquals("TC messages filtered in wrong way", "Hello\nI am\nPyCharm", console.getText());
|
||||
}finally {
|
||||
Disposer.dispose(console);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user