Skip to content

Commit b79420f

Browse files
glemaitrejeremiedbb
authored andcommitted
FIX add long long for int32/int64 windows compat in NumPy 2.0 (#29029)
1 parent 37f544d commit b79420f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sklearn/utils/arrayfuncs.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ctypedef fused real_numeric:
1616
short
1717
int
1818
long
19+
long long
1920
float
2021
double
2122

sklearn/utils/tests/test_arrayfuncs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def test_min_pos_no_positive(dtype):
2626
assert min_pos(X) == np.finfo(dtype).max
2727

2828

29-
@pytest.mark.parametrize("dtype", [np.int16, np.int32, np.float32, np.float64])
29+
@pytest.mark.parametrize(
30+
"dtype", [np.int16, np.int32, np.int64, np.float32, np.float64]
31+
)
3032
@pytest.mark.parametrize("value", [0, 1.5, -1])
3133
def test_all_with_any_reduction_axis_1(dtype, value):
3234
# Check that return value is False when there is no row equal to `value`

0 commit comments

Comments
 (0)