From b67f50a57ab9d5ec08a87d4ec1c22e22db421e8f Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 2 Oct 2023 08:18:19 +0200 Subject: [PATCH] [IMP] tests: improve logging of active patcher Part-of: odoo/odoo#137215 --- odoo/tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 830298465d0..b5c4eb6bcea 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -303,7 +303,7 @@ class BaseCase(case.TestCase, metaclass=MetaCase): def setUpClass(cls): def check_remaining_patchers(): for patcher in _patch._active_patches: - _logger.warning("A patcher was remaining active at the end of %s, disabling it...", cls.__name__) + _logger.warning("A patcher (targeting %s.%s) was remaining active at the end of %s, disabling it...", patcher.target, patcher.attribute, cls.__name__) patcher.stop() cls.addClassCleanup(check_remaining_patchers) super().setUpClass()