summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_cheatsheet.rst
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-09-11 14:34:43 +0000
committerXavier Morel <xmo@odoo.com>2019-11-05 08:25:30 +0000
commit4024f628f4d311782a8b256b6513a62d72771532 (patch)
tree7d77893afa85c4f4896f712d27145f42b98cecba /doc/reference/javascript_cheatsheet.rst
parent92ba000411c1c5501a3cdad137e8db0ab7580c84 (diff)
[IMP] tests: Allow msg with assertRaises
The unittest signature of `assertRaises` allows a named parameter `msg`[1]. The message is displayed in case of assertion failure if `assertRaises` is used as a context manager (but not when giving it a callable). The Odoo implementation did not implement this behavior, despite it being expected by multiple odoo tests. Fix Odoo version to be in line with the method we're overriding / shadowing. [1] https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRaises closes odoo/odoo#36719 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions