From 97bd3fb6e1ebe52533a2c4aa6a8cdfe1e2e9146d Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Wed, 6 Nov 2024 10:15:40 +0100 Subject: [PATCH] tests: add missing parent setUp() calls --- test/picardtestcase.py | 2 ++ test/test_debug_opt.py | 1 + test/test_mbjson.py | 1 + 3 files changed, 4 insertions(+) diff --git a/test/picardtestcase.py b/test/picardtestcase.py index 580ddaa491..9dee0ecc06 100644 --- a/test/picardtestcase.py +++ b/test/picardtestcase.py @@ -83,7 +83,9 @@ def get_release_group_by_id(self, rg_id): # pylint: disable=no-self-use class PicardTestCase(unittest.TestCase): + def setUp(self): + super().setUp() log.set_level(logging.DEBUG) setup_gettext(None, 'C') self.tagger = FakeTagger() diff --git a/test/test_debug_opt.py b/test/test_debug_opt.py index 0f697323ee..a534d3044a 100644 --- a/test/test_debug_opt.py +++ b/test/test_debug_opt.py @@ -30,6 +30,7 @@ class DebugOptTestCase(DebugOptEnum): class TestDebugOpt(PicardTestCase): def setUp(self): + super().setUp() DebugOptTestCase.set_registry(set()) def test_enabled(self): diff --git a/test/test_mbjson.py b/test/test_mbjson.py index f466fc5450..73b2e8dd7d 100644 --- a/test/test_mbjson.py +++ b/test/test_mbjson.py @@ -664,6 +664,7 @@ def test_locale_specific_match_first_exc2(self): class TestAliasesLocales(PicardTestCase): def setUp(self): + super().setUp() self.maxDiff = None self.aliases = [