Fix test: FutureWarning then IndexError
@@ -346,6 +346,7 @@ class TestArrayInvalidValueAdvGetitem(unittest.TestCase):
for xp in (numpy, cupy):
a = testing.shaped_arange(self.shape, xp)
with pytest.raises(IndexError):
+ with testing.assert_warns(FutureWarning):
a[self.indexes]
