diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2017-01-06 17:12:26 -0500 |
---|---|---|
committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2017-01-09 09:40:03 -0500 |
commit | fe46cd691cde2a707ea727d65414cf7285969bbe (patch) | |
tree | a0d4683c78934680ec4fc53a140f3863f985a0ab /numpy/lib/tests | |
parent | 83fe06df889c2c3166969bf9615018cb2f239cad (diff) | |
download | numpy-fe46cd691cde2a707ea727d65414cf7285969bbe.tar.gz |
BUG assert_almost_equal fails on subclasses that cannot handle bool
gh-8410 breaks a large number of astropy tests, because it sets up
a boolean array for values that should actually be compared (i.e.,
are not `nan` or `inf`) using `zeros_like`. The latter means that
for subclasses, the boolean test array is not a plain `ndarray` but
the subclass. But for astropy's `Quantity`, the `all` method is
undefined.
This commit ensures the test arrays from `isinf` and `isnan` are
used directly.
Diffstat (limited to 'numpy/lib/tests')
0 files changed, 0 insertions, 0 deletions