From c8c56743c5f536d23fdfcfb3eaea474ec64d1f9e Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Tue, 4 Aug 2015 18:34:08 +0200 Subject: [PATCH] Interface instead of class. --- .../python/testing/PythonTestCommandLineStateBase.java | 3 ++- .../python/testing/pytest/PyTestCommandLineState.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/testing/PythonTestCommandLineStateBase.java b/python/src/com/jetbrains/python/testing/PythonTestCommandLineStateBase.java index f9806b4123d0..591bac14227c 100644 --- a/python/src/com/jetbrains/python/testing/PythonTestCommandLineStateBase.java +++ b/python/src/com/jetbrains/python/testing/PythonTestCommandLineStateBase.java @@ -36,6 +36,7 @@ import com.intellij.openapi.util.Getter; import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; +import com.jetbrains.python.PythonHelper; import com.jetbrains.python.PythonHelpersLocator; import com.jetbrains.python.console.PythonDebugLanguageConsoleView; import com.jetbrains.python.run.AbstractPythonRunConfiguration; @@ -172,6 +173,6 @@ public abstract class PythonTestCommandLineStateBase extends PythonCommandLineSt envs.put("PYCHARM_HELPERS_DIR", PythonHelpersLocator.getHelperPath("pycharm")); } - protected abstract PythonHelpersLocator getRunner(); + protected abstract PythonHelper getRunner(); protected abstract List getTestSpecs(); } diff --git a/python/src/com/jetbrains/python/testing/pytest/PyTestCommandLineState.java b/python/src/com/jetbrains/python/testing/pytest/PyTestCommandLineState.java index b22e607ba900..b4e1b8405d43 100644 --- a/python/src/com/jetbrains/python/testing/pytest/PyTestCommandLineState.java +++ b/python/src/com/jetbrains/python/testing/pytest/PyTestCommandLineState.java @@ -24,6 +24,7 @@ import com.intellij.execution.runners.ExecutionEnvironment; import com.intellij.execution.ui.ConsoleView; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.text.StringUtil; +import com.jetbrains.python.PythonHelper; import com.jetbrains.python.PythonHelpersLocator; import com.jetbrains.python.testing.PythonTestCommandLineStateBase; import org.jetbrains.annotations.NotNull; @@ -50,7 +51,7 @@ public class PyTestCommandLineState extends PythonTestCommandLineStateBase { } @Override - protected PythonHelpersLocator getRunner() { + protected PythonHelper getRunner() { return PythonHelpersLocator.PYTEST; }