diff --git a/plugins/ant/tests/src/com/intellij/lang/ant/AntCompletionTest.java b/plugins/ant/tests/src/com/intellij/lang/ant/AntCompletionTest.java index 0e773bbc9967..30dcdce0c87a 100644 --- a/plugins/ant/tests/src/com/intellij/lang/ant/AntCompletionTest.java +++ b/plugins/ant/tests/src/com/intellij/lang/ant/AntCompletionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,8 +214,12 @@ public class AntCompletionTest extends LightCodeInsightTestCase { @Override protected void tearDown() throws Exception { - LookupManager.getInstance(getProject()).hideActiveLookup(); - super.tearDown(); + try { + LookupManager.getInstance(getProject()).hideActiveLookup(); + } + finally { + super.tearDown(); + } } }