diff options
author | kai-striega <kaistriega+github@gmail.com> | 2019-05-27 20:45:45 +0800 |
---|---|---|
committer | kai-striega <kaistriega+github@gmail.com> | 2019-05-27 20:45:45 +0800 |
commit | 397829e6c2b7251e20a0efaa9dcb177b31eae532 (patch) | |
tree | 231f674048a2ab75c40a31ac9fb80e7d0c8b4a2d /numpy/core/fromnumeric.py | |
parent | b1622aceb4cb39bdd71ed958f3d86c55d7ca7cb0 (diff) | |
download | numpy-397829e6c2b7251e20a0efaa9dcb177b31eae532.tar.gz |
TST: Tighten test of generic Ufunc loops.
The previous assertion tested was ``assert_almost_equal`` which has two
major drawbacks:
* ``assert_almost_equal`` does not handle floating point values
consistently, however many of the test compare floating point results.
As recommended in the docs test has changed to use ``assert_allclose``
which provides better floating point comparisons.
* It fails to check if the expected dtypes are returned. Currently the
tests check how *close* the resultant numbers are to one another, not,
if the dtypes are the same. The updated tests explicitly compare dtypes
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions