[FIX] tests: make sure that a failed tests does not leave the environment dirty
authorRaphael Collet <rco@openerp.com>
Thu, 13 Nov 2014 16:40:41 +0000 (17:40 +0100)
committerRaphael Collet <rco@openerp.com>
Mon, 17 Nov 2014 13:07:42 +0000 (14:07 +0100)
commit908252ec88cd4516ee84fdf93c07d09f51a45413
treeda5baf112cbdd8dd0703806ce154cafcbb66a23c
parent2052c16d21d50596adc11060a8a7eee21eccb8d9
[FIX] tests: make sure that a failed tests does not leave the environment dirty

When a failure occurs, or when exiting an assertRaises(), the environment
should not contain fields to recompute.
openerp/addons/base/tests/test_acl.py
openerp/addons/test_new_api/tests/test_new_fields.py
openerp/api.py
openerp/tests/common.py