Fix with None input. (#10052)
This commit is contained in:
@@ -202,7 +202,10 @@ class TestFromCupy:
|
||||
n = 100
|
||||
X = cp.random.random((n, 2))
|
||||
m = xgb.QuantileDMatrix(X.toDlpack())
|
||||
with pytest.raises(xgb.core.XGBoostError):
|
||||
|
||||
with pytest.raises(
|
||||
xgb.core.XGBoostError, match="Slicing DMatrix is not supported"
|
||||
):
|
||||
m.slice(rindex=[0, 1, 2])
|
||||
|
||||
@pytest.mark.skipif(**tm.no_cupy())
|
||||
|
||||
Reference in New Issue
Block a user