diff --git a/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java b/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java index bdac965309c8..fe32c28d3d6c 100644 --- a/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java +++ b/RegExpSupport/test/org/intellij/lang/regexp/BaseParseTestCase.java @@ -53,9 +53,13 @@ public abstract class BaseParseTestCase extends UsefulTestCase { @Override protected void tearDown() throws Exception { - myFixture.tearDown(); - myFixture = null; - super.tearDown(); + try { + myFixture.tearDown(); + } + finally { + myFixture = null; + super.tearDown(); + } } public static String getTestDataRoot() {