Skip to content

Commit 4e120db

Browse files
committed
[FIX] tests: mute correct loggers in old versions
In old version, this is `odoo.addons.base.maintenance.migrations.util`. closes #269 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 2f89634 commit 4e120db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def test_explode_mult_filters(self):
801801
cr.execute(q)
802802
self.assertTrue(all(x for (x,) in cr.fetchall()))
803803

804-
@mute_logger("odoo.upgrade.util.pg.explode_query_range")
804+
@mute_logger(util.pg._logger.getChild("explode_query_range").name)
805805
def test_explode_query_range(self):
806806
cr = self.env.cr
807807

@@ -1822,7 +1822,7 @@ def test_literal_replace(self, orig, expected, old_unparse_fallback=None):
18221822
self.assertEqual(repl, expected)
18231823

18241824
@unittest.skipUnless(util.ast_unparse is not None, "`ast.unparse` available from Python3.9")
1825-
@mute_logger("odoo.upgrade.util.misc")
1825+
@mute_logger(util.misc._logger.name)
18261826
def test_literal_replace_error(self):
18271827
# this shouldn't raise a syntax error
18281828
res = util.literal_replace("[1,2", {"1": "3"})

0 commit comments

Comments
 (0)