[test/indexing/generate] Fixed in case of xp.bool_
@@ -18,8 +18,17 @@ class TestIndices(unittest.TestCase):
@testing.for_all_dtypes()
@testing.numpy_cupy_array_list_equal()
def test_indices_list1(self, xp, dtype):
+ return xp.indices((1, 2), dtype)
+
+ @testing.for_all_dtypes(no_bool=True)
+ @testing.numpy_cupy_array_list_equal()
+ def test_indices_list2(self, xp, dtype):
return xp.indices((1, 2, 3, 4), dtype)
+ @testing.numpy_cupy_raises()
+ def test_indices_list3(self, xp):
+ return xp.indices((1, 2, 3, 4), dtype=xp.bool_)
+
@testing.gpu
class TestIX_(unittest.TestCase):
