[ADD] disable default_log_exception before assertraises

This commit is contained in:
Adrien Peiffer
2014-10-30 10:42:03 +01:00
parent 41e29433da
commit 679f708efd

View File

@@ -203,6 +203,7 @@ class TestAccountJournalPeriodClose(common.TransactionCase):
create_journal_period(self, period_id, journal_id, context)
# I check if the exception is correctly raised at adding both same
# journal on a period
self.cr._default_log_exceptions = False
self.assertRaises(IntegrityError,
create_journal_period,
self, period_id, journal_id, context)