From 53f05d49766bf7ea8797928b71c7f4e5fb1dfe80 Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Fri, 24 Apr 2020 10:42:41 +0300 Subject: [PATCH] [tests] cleanup: remove unnecessary clearField calls This isn't needed since we call it in UsefulTestCase::tearDown. GitOrigin-RevId: 9edcc484b5adc310b73c82b4faab5bd758f509dc --- .../com/intellij/testFramework/PlatformLiteFixture.java | 7 +------ .../testSrc/com/jetbrains/python/fixtures/PyTestCase.java | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/PlatformLiteFixture.java b/platform/testFramework/src/com/intellij/testFramework/PlatformLiteFixture.java index 8fa9c7778dfd..0a8f8c04f293 100644 --- a/platform/testFramework/src/com/intellij/testFramework/PlatformLiteFixture.java +++ b/platform/testFramework/src/com/intellij/testFramework/PlatformLiteFixture.java @@ -42,12 +42,7 @@ public abstract class PlatformLiteFixture extends UsefulTestCase { @Override protected void tearDown() throws Exception { myProject = null; - try { - super.tearDown(); - } - finally { - clearFields(this); - } + super.tearDown(); } protected void registerExtension(@NotNull ExtensionPointName extensionPointName, @NotNull T extension) { diff --git a/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java b/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java index 7ce35cf0014a..5fd471cbb4f9 100644 --- a/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java +++ b/python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java @@ -277,7 +277,6 @@ public abstract class PyTestCase extends UsefulTestCase { } finally { super.tearDown(); - clearFields(this); } }