void (@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assert runner.getFailedTestsCount() > 0 : "We need failed tests to test broken rerun"; assertEquals("No exception thrown or rerun, but it should", 0, runner.getCurrentRerunStep()); EdtTestUtil.runInEdtAndWait(() -> { // Delete files, so next rerun should lead to exception deleteAllTestFiles(myFixture); }); }