From d5a6ab00a3e42aa56d4b553a8e8318dc53717243 Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Thu, 26 Mar 2015 15:00:41 +0300 Subject: [PATCH] Refresh FS before searching for files on the local FS in Python tests PyMoveTest#testStarImportWithUsages was failing because its expected data located in the testData folder changed, but the old version remained in FS caches. --- python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java b/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java index 526c95efc07b..3b73d5f59e27 100644 --- a/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java +++ b/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java @@ -86,7 +86,7 @@ public abstract class PyTestCase extends UsefulTestCase { @Nullable protected static VirtualFile getVirtualFileByName(String fileName) { - return LocalFileSystem.getInstance().findFileByPath(fileName.replace(File.separatorChar, '/')); + return LocalFileSystem.getInstance().refreshAndFindFileByPath(fileName.replace(File.separatorChar, '/')); } @Override