Skip to content

Commit

Permalink
numpy 2 compat (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger authored Nov 25, 2024
1 parent 567cfd7 commit ed8a2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/preprocessing/test_encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,6 @@ def test_unknown_category_transform_array():
enc.fit(dX)

result = enc.transform(x2)
match = r"Block contains previously unseen values \['d'\].*\n+.*Block info"
match = r"Block contains previously unseen values"
with pytest.raises(ValueError, match=match):
result.compute()
2 changes: 1 addition & 1 deletion tests/test_svd.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
shape = 60, 55
n_samples, n_features = shape
rng = check_random_state(42)
X = rng.randint(-100, 20, np.product(shape)).reshape(shape)
X = rng.randint(-100, 20, np.prod(shape)).reshape(shape)
X = sp.csr_matrix(np.maximum(X, 0), dtype=np.float64)
X.data[:] = 1 + np.log(X.data)
Xdense = X.toarray()
Expand Down

0 comments on commit ed8a2b7

Please sign in to comment.