test: correct some try/except test
authorLaetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
Fri, 9 Aug 2013 07:06:05 +0000 (09:06 +0200)
committerLaetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
Fri, 9 Aug 2013 07:06:05 +0000 (09:06 +0200)
bzr revid: laetitia.gangloff@acsone.eu-20130809070605-w6ti80ljpv5zsh2p

addons/account/test/account_supplier_invoice.yml
addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml

index 2c36b67..2232b8d 100644 (file)
@@ -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 
index 3c17872..5b8c017 100644 (file)
@@ -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.