Skip to content

Commit 4626409

Browse files
committed
Null check performed by XGBoost
1 parent cad1102 commit 4626409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/python-gpu/test_from_cudf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def test_invalid_meta() -> None:
405405
y = X.copy()
406406
y.iloc[0, 0] = None
407407
# check by the cuDF->cupy converter.
408-
with pytest.raises(ValueError, match="no nulls"):
408+
with pytest.raises(ValueError, match="Label contains NaN"):
409409
xgb.DMatrix(X, y)
410-
with pytest.raises(ValueError, match="no nulls"):
410+
with pytest.raises(ValueError, match="Label contains NaN"):
411411
xgb.QuantileDMatrix(X, y)

0 commit comments

Comments
 (0)