summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_packbits.py
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-01-06 17:12:26 -0500
committerMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-01-09 09:40:03 -0500
commitfe46cd691cde2a707ea727d65414cf7285969bbe (patch)
treea0d4683c78934680ec4fc53a140f3863f985a0ab /numpy/lib/tests/test_packbits.py
parent83fe06df889c2c3166969bf9615018cb2f239cad (diff)
downloadnumpy-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/test_packbits.py')
0 files changed, 0 insertions, 0 deletions