diff --git a/numpy/core/src/multiarray/mapping.c b/numpy/core/src/multiarray/mapping.c index 0ebb337b0898..8b9b67387181 100644 --- a/numpy/core/src/multiarray/mapping.c +++ b/numpy/core/src/multiarray/mapping.c @@ -2371,8 +2371,6 @@ mapiter_fill_info(PyArrayMapIterObject *mit, npy_index_info *indices, /* Before contunuing, ensure that there are not too fancy indices */ if (indices[i].type & HAS_FANCY) { - assert(indices[i].type == HAS_FANCY || - indices[i].type == HAS_0D_BOOL); if (NPY_UNLIKELY(j >= NPY_MAXDIMS)) { PyErr_Format(PyExc_IndexError, "too many advanced (array) indices. This probably "