From c167918f889acc0fcae24a52f6e66ef6f21a2873 Mon Sep 17 00:00:00 2001 From: "Laetitia Gangloff (Acsone)" Date: Fri, 9 Aug 2013 09:06:05 +0200 Subject: [PATCH] test: correct some try/except test bzr revid: laetitia.gangloff@acsone.eu-20130809070605-w6ti80ljpv5zsh2p --- addons/account/test/account_supplier_invoice.yml | 2 +- addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/test/account_supplier_invoice.yml b/addons/account/test/account_supplier_invoice.yml index 2c36b6751a9..2232b8dc00e 100644 --- a/addons/account/test/account_supplier_invoice.yml +++ b/addons/account/test/account_supplier_invoice.yml @@ -81,7 +81,7 @@ 'active_model': 'ir.ui.menu', 'journal_type': 'purchase', 'active_ids': [ref('menu_action_invoice_tree2')], 'type': 'in_invoice', 'active_id': ref('menu_action_invoice_tree2')}) assert False, "This should never happen!" - except osv.except_osv, e: + except osv.except_osv: pass - I verify that 'Period Sum' and 'Year sum' of the tax code are the expected values diff --git a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml index 3c178728b6f..5b8c0178963 100644 --- a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml +++ b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml @@ -67,7 +67,7 @@ [ref("hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form")],"active_id": ref("hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form"), }) assert False, "The validation of the timesheet was unexpectedly accepted despite the 2:30 hours of difference" - except osv.except_osv, e: + except osv.except_osv: pass - I Modified the timesheet record and make the difference less than 1 hour.