Commit 791a9a0
Benjamin Moody
When running nosetests, raise exceptions for arithmetic errors.
nosetests will invoke the functions setup_module() and
teardown_module(), if defined, before and after running all test cases
within the module.
In general, numpy arithmetic errors (e.g. integer or floating-point
overflow, or division by zero) should not happen under normal
circumstances, and the package should neither assume that these errors
will raise an exception, nor assume that they won't. Therefore, while
running the test suite, set the numpy error handling mode to "raise"
so the test will fail if such an error occurs.1 parent 6be3066 commit 791a9a0
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments