From fc8b4a9e8f85ac47326c1a36252d43962c517337 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Wed, 3 Aug 2016 18:11:38 +0300 Subject: [PATCH] do not collect tests from interpreter from inside project --- .../python/testing/PyIntegratedToolsProjectConfigurator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/testing/PyIntegratedToolsProjectConfigurator.java b/python/src/com/jetbrains/python/testing/PyIntegratedToolsProjectConfigurator.java index 8cf525865f0f..f0d866528bd1 100644 --- a/python/src/com/jetbrains/python/testing/PyIntegratedToolsProjectConfigurator.java +++ b/python/src/com/jetbrains/python/testing/PyIntegratedToolsProjectConfigurator.java @@ -87,7 +87,7 @@ public class PyIntegratedToolsProjectConfigurator implements DirectoryProjectCon //try to find test_runner import final String extension = PythonFileType.INSTANCE.getDefaultExtension(); // Module#getModuleScope() and GlobalSearchScope#getModuleScope() search only in source roots - final GlobalSearchScope searchScope = module.getModuleContentScope(); + final GlobalSearchScope searchScope = module.getModuleScope(); final Collection pyFiles = FilenameIndex.getAllFilesByExt(module.getProject(), extension, searchScope); for (VirtualFile file : pyFiles) { if (file.getName().startsWith("test")) {