mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not collect tests from interpreter from inside project
This commit is contained in:
@@ -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<VirtualFile> pyFiles = FilenameIndex.getAllFilesByExt(module.getProject(), extension, searchScope);
|
||||
for (VirtualFile file : pyFiles) {
|
||||
if (file.getName().startsWith("test")) {
|
||||
|
||||
Reference in New Issue
Block a user