diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-08-17 14:02:47 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-08-17 16:43:07 -0600 |
commit | fc2df52313c6db5ba4ccbd10b233cee6b4acec2c (patch) | |
tree | b1f780f424d67538366d69fa9aa097e274f7aee2 /numpy/lib/tests/test_index_tricks.py | |
parent | 3026928b86b12543e9e4738ed91bc2a2cd6cb07f (diff) | |
download | numpy-fc2df52313c6db5ba4ccbd10b233cee6b4acec2c.tar.gz |
BUG: Fix regression in intersect1d.
The function was failing for non-ndarray objects that defined
that defined __array__, in particular `xarray.DataArray`. Fix
by calling asanyarray on the inputs, which was done implicitly
before.
Closes #11772.
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
0 files changed, 0 insertions, 0 deletions