From ebbb533eb5ad45bd9a6eb64445d32ee35cac1036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 15 May 2021 09:22:28 +0200 Subject: [PATCH] Use start and stop methods of patch in scenario This ensure that the modification on the object are removed at the end of the scenario. issue10422 review332891002 --- trytond/tests/test_tryton.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/tests/test_tryton.py b/trytond/tests/test_tryton.py index 2a4a8dc656..88abda8027 100644 --- a/trytond/tests/test_tryton.py +++ b/trytond/tests/test_tryton.py @@ -901,6 +901,7 @@ def doctest_setup(test): def doctest_teardown(test): + unittest.mock.patch.stopall() return drop_db()