diff --git a/sklearn/neighbors/tests/test_neighbors.py b/sklearn/neighbors/tests/test_neighbors.py index ac312144ae968..00c53734c9576 100644 --- a/sklearn/neighbors/tests/test_neighbors.py +++ b/sklearn/neighbors/tests/test_neighbors.py @@ -2117,7 +2117,7 @@ def sparse_metric(x, y): # Metric accepting sparse matrix input (only) [[1, 1, 1, 1, 1], [1, 0, 1, 0, 1], [0, 0, 1, 0, 0]] # Population matrix ) - Y = csr_container([[1, 1, 0, 1, 1], [1, 0, 0, 0, 1]]) # Query matrix + Y = csr_container([[1, 1, 0, 1, 1], [1, 0, 0, 1, 1]]) # Query matrix nn = neighbors.NearestNeighbors( algorithm="brute", n_neighbors=2, metric=sparse_metric