diff --git a/python/src/com/jetbrains/python/testing/nosetest/PythonNoseTestConfigurationProducer.java b/python/src/com/jetbrains/python/testing/nosetest/PythonNoseTestConfigurationProducer.java index b7dc704ff4e8..ddbd90623080 100644 --- a/python/src/com/jetbrains/python/testing/nosetest/PythonNoseTestConfigurationProducer.java +++ b/python/src/com/jetbrains/python/testing/nosetest/PythonNoseTestConfigurationProducer.java @@ -41,8 +41,7 @@ public class PythonNoseTestConfigurationProducer extends module = modules[0]; } final Sdk sdk = PythonSdkType.findPythonSdk(module); - return (TestRunnerService.getInstance(module).getProjectConfiguration().equals( - PythonTestConfigurationsModel.PYTHONS_NOSETEST_NAME) && sdk != null); + return (PythonTestConfigurationsModel.PYTHONS_NOSETEST_NAME.equals(TestRunnerService.getInstance(module).getProjectConfiguration()) && sdk != null); } @Override