From d7440f731c317d49c1ca4b5897de3e6e04132045 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 25 Jun 2014 20:19:13 +0200 Subject: [PATCH] python rerun failed tests: skipped tests are already excluded by default implementation --- .../python/testing/PyRerunFailedTestsAction.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.java b/python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.java index 2e92a0e52022..cc468c5e40ac 100644 --- a/python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.java +++ b/python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.java @@ -23,14 +23,11 @@ import com.intellij.execution.configurations.RunConfigurationBase; import com.intellij.execution.configurations.RunProfileState; import com.intellij.execution.runners.ExecutionEnvironment; import com.intellij.execution.testframework.AbstractTestProxy; -import com.intellij.execution.testframework.Filter; import com.intellij.execution.testframework.TestFrameworkRunningModel; import com.intellij.execution.testframework.actions.AbstractRerunFailedTestsAction; -import com.intellij.execution.testframework.sm.runner.states.TestStateInfo; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.ComponentContainer; -import com.intellij.psi.search.GlobalSearchScope; import com.jetbrains.python.run.AbstractPythonRunConfiguration; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -131,15 +128,4 @@ public class PyRerunFailedTestsAction extends AbstractRerunFailedTestsAction { passParentEnvs); } } - - @NotNull - @Override - protected Filter getFilter(Project project, GlobalSearchScope searchScope) { - return new Filter() { - public boolean shouldAccept(final AbstractTestProxy test) { - boolean ignored = (test.getMagnitude() == TestStateInfo.Magnitude.IGNORED_INDEX.getValue()); - return !ignored && (test.isInterrupted() || test.isDefect()); - } - }; - } }