From 166f6361e85a6b267642a9bfd3134feebba038aa Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Thu, 10 Feb 2011 17:14:13 +0300 Subject: [PATCH] fixed PY-2807 Running and re-running single test cases or test methods from nosetests runner --- .../python/testing/PythonTestConfigurationProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/testing/PythonTestConfigurationProducer.java b/python/src/com/jetbrains/python/testing/PythonTestConfigurationProducer.java index 52140459013b..c1dd4dc79622 100644 --- a/python/src/com/jetbrains/python/testing/PythonTestConfigurationProducer.java +++ b/python/src/com/jetbrains/python/testing/PythonTestConfigurationProducer.java @@ -50,7 +50,7 @@ abstract public class PythonTestConfigurationProducer extends RuntimeConfigurati settings = createConfigurationFromFolder(location); if (settings != null) return settings; - final PyElement pyElement = PsiTreeUtil.getParentOfType(location.getPsiElement(), PyElement.class); + final PyElement pyElement = PsiTreeUtil.getParentOfType(location.getPsiElement(), PyElement.class, false); if (pyElement != null) { settings = createConfigurationFromFunction(location, pyElement); if (settings != null) return settings;