diff --git a/arrow/src/compute/kernels/arithmetic.rs b/arrow/src/compute/kernels/arithmetic.rs index 9e731f3f653..54d238459ad 100644 --- a/arrow/src/compute/kernels/arithmetic.rs +++ b/arrow/src/compute/kernels/arithmetic.rs @@ -2027,7 +2027,10 @@ mod tests { } #[test] + #[cfg(not(feature = "simd"))] #[should_panic(expected = "Overflow happened")] + #[cfg(feature = "simd")] + #[should_panic(expected = "DivideByZero")] fn test_primitive_array_divide_by_zero() { let a = Int32Array::from(vec![15]); let b = Int32Array::from(vec![0]);