8000 CI Error on numpy.VisibleDeprecationWarning in CI (#23971) · scikit-learn/scikit-learn@d8ab556 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8ab556

Browse files
glemaitrejjerphan
andcommitted
CI Error on numpy.VisibleDeprecationWarning in CI (#23971)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
1 parent 024603e commit d8ab556

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

build_tools/azure/test_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [[ "$COVERAGE" == "true" ]]; then
5151
fi
5252

5353
if [[ -n "$CHECK_WARNINGS" ]]; then
54-
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning"
54+
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning -Werror::numpy.VisibleDeprecationWarning"
5555

5656
# numpy's 1.19.0's tostring() deprecation is ignored until scipy and joblib
5757
# removes its usage

build_tools/travis/test_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [[ $TRAVIS_CPU_ARCH == arm64 ]]; then
3333
fi
3434

3535
if [[ -n $CHECK_WARNINGS ]]; then
36-
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning"
36+
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning -Werror::numpy.VisibleDeprecationWarning"
3737
fi
3838

3939
$TEST_CMD sklearn

sklearn/metrics/tests/test_pairwise_distances_reduction.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,6 @@ def test_pairwise_distances_radius_neighbors(
510510
neigh_indices_ref.append(ind)
511511
neigh_distances_ref.append(dist)
512512

513-
neigh_indices_ref = np.array(neigh_indices_ref)
514-
neigh_distances_ref = np.array(neigh_distances_ref)
515-
516513
neigh_distances, neigh_indices = PairwiseDistancesRadiusNeighborhood.compute(
517514
X,
518515
Y,

0 commit comments

Comments
 (0)
0