void (@NotNull Throwable e, @NotNull PyUnitTestProcessRunner runner) { assertEquals("Wrong type of exception", e.getClass(), ExecutionException.class); assertTrue("Exception should be thrown on the first or second rerun", runner.getCurrentRerunStep() > 0); assertEquals(e.getMessage(), PyBundle.message("runcfg.tests.cant_rerun")); }