void () { runPythonTest(new IPythonTask() { @Override public void testing() throws Exception { waitForReady(); addTextToEditor("sys?"); ApplicationManager.getApplication().runReadAction(() -> { PsiFile psi = PsiDocumentManager.getInstance(getProject()).getPsiFile(getConsoleView().getConsoleEditor().getDocument()); //TreeUtil.ensureParsed(psi.getNode()); assertTrue(PsiTreeUtil.hasErrorElements(psi)); }); } @NotNull @Override public Set<String> getTags() { return ImmutableSet.of("-ipython"); } }); }