From 87086931cc9a69d28e797cd0d7d878f6fe5981ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Oct 2023 09:34:26 +0200 Subject: [PATCH] Use assert_not_called in Mock instead of calling not_called (grafted from b097604b69b899117a9d3c00c3fdae8487356e48) --HG-- branch : 6.0 --- trytond/trytond/tests/test_transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/tests/test_transaction.py b/trytond/trytond/tests/test_transaction.py index 1e8b404016..5537ea8a2f 100644 --- a/trytond/trytond/tests/test_transaction.py +++ b/trytond/trytond/tests/test_transaction.py @@ -87,7 +87,7 @@ class TransactionTestCase(unittest.TestCase): dm.tpc_begin.assert_called_once_with(transaction) dm.commit.assert_called_once_with(transaction) dm.tpc_vote.assert_called_once_with(transaction) - dm.tpc_abort.not_called() + dm.tpc_abort.assert_not_called() dm.tpc_finish.assert_called_once_with(transaction) # Failing in the datamanager