Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 20, 2021
1 parent 9691d15 commit 8629f51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/python/test_data_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def run_data_iterator(
) -> None:
n_rounds = 2

it = IteratorForTest(*make_batches(n_samples_per_batch, n_features, n_batches))
it = IteratorForTest(
*make_batches(n_samples_per_batch, n_features, n_batches, cupy)
)
if n_batches == 0:
with pytest.raises(ValueError, match="1 batch"):
Xy = xgb.DMatrix(it)
Expand Down

0 comments on commit 8629f51

Please sign in to comment.