diff --git a/odoo/addons/base/tests/test_ir_actions.py b/odoo/addons/base/tests/test_ir_actions.py index c82a5403597..cb48752a960 100644 --- a/odoo/addons/base/tests/test_ir_actions.py +++ b/odoo/addons/base/tests/test_ir_actions.py @@ -251,14 +251,14 @@ class TestCustomFields(common.TransactionCase): def test_create_unique(self): """ one cannot create two fields with the same name on a given model """ self.create_field('x_foo') - with self.assertRaises(IntegrityError): + with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'): self.create_field('x_foo') def test_rename_unique(self): """ one cannot create two fields with the same name on a given model """ field1 = self.create_field('x_foo') field2 = self.create_field('x_bar') - with self.assertRaises(IntegrityError): + with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'): field2.name = field1.name def test_remove_without_view(self):