8000 TST: force dtype of arange to int64 to not be platform dependent (#30… · scikit-learn/scikit-learn@cd3cdff · GitHub
[go: up one dir, main page]

Skip to content

Commit cd3cdff

Browse files
TST: force dtype of arange to int64 to not be platform dependent (#30948)
1 parent 54f6046 commit cd3cdff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tree/tests/test_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,7 @@ def test_sort_log2_build():
28262826
rng = np.random.default_rng(75)
28272827
some = rng.normal(loc=0.0, scale=10.0, size=10).astype(np.float32)
28282828
feature_values = np.concatenate([some] * 5)
2829-
samples = np.arange(50)
2829+
samples = np.arange(50, dtype=np.intp)
28302830
_py_sort(feature_values, samples, 50)
28312831
# fmt: off
28322832
# no black reformatting for this specific array

0 commit comments

Comments
 (0)
0