From 9bace26a690a778ec0f09a9aae9537dfbdb6f42f Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Fri, 13 Dec 2019 12:24:23 +0100 Subject: [lldb][NFC] Remove all `setUp` overrides that only call the parent implementation Summary: A lot of our tests copied the setUp code from our TestSampleTest.py: ``` def setUp(self): # Call super's setUp(). TestBase.setUp(self) ``` This code does nothing unless we actually do any setUp work in there, so let's remove all these method definitions. Reviewers: labath, JDevlieghere Reviewed By: labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71454 --- .../lldbsuite/test/commands/command/script/import/TestImport.py | 4 ---- .../commands/command/script/import/rdar-12586188/TestRdar12586188.py | 4 ---- 2 files changed, 8 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/commands/command') diff --git a/lldb/packages/Python/lldbsuite/test/commands/command/script/import/TestImport.py b/lldb/packages/Python/lldbsuite/test/commands/command/script/import/TestImport.py index 9a96f78b922..a10c23bad1f 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/command/script/import/TestImport.py +++ b/lldb/packages/Python/lldbsuite/test/commands/command/script/import/TestImport.py @@ -18,10 +18,6 @@ class ImportTestCase(TestBase): """Import some Python scripts by path and test them""" self.run_test() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def run_test(self): """Import some Python scripts by path and test them.""" diff --git a/lldb/packages/Python/lldbsuite/test/commands/command/script/import/rdar-12586188/TestRdar12586188.py b/lldb/packages/Python/lldbsuite/test/commands/command/script/import/rdar-12586188/TestRdar12586188.py index ab48c21dd66..478cfa38d03 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/command/script/import/rdar-12586188/TestRdar12586188.py +++ b/lldb/packages/Python/lldbsuite/test/commands/command/script/import/rdar-12586188/TestRdar12586188.py @@ -18,10 +18,6 @@ class Rdar12586188TestCase(TestBase): """Check that we handle an ImportError in a special way when command script importing files.""" self.run_test() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def run_test(self): """Check that we handle an ImportError in a special way when command script importing files.""" -- cgit v1.2.3