modified call to np.in1d
@@ -112,4 +112,6 @@ class TestIn1DIsIn(unittest.TestCase):
def test(self, xp, dtype):
x = testing.shaped_arange(self.shape_x, xp, dtype)
y = testing.shaped_arange(self.shape_y, xp, dtype)
- return getattr(xp, self.f)(x, y, self.assume_unique, self.invert)
+ if xp is numpy and self.f == 'isin':
+ return xp.in1d(x, y, ...).reshape(x.shape)
+ return getattr(xp, self.f)(x, y, ...)
