Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Mar 3, 2023
1 parent d29d7ef commit c6db15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/test_ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_ranking_with_weighted_data():
assert all(p <= q for p, q in zip(is_sorted, is_sorted[1:]))


def test_error_msg(self) -> None:
def test_error_msg() -> None:
X, y, qid, w = tm.make_ltr(10, 2, 2, 2)
ranker = xgboost.XGBRanker()
with pytest.raises(ValueError, match=r"equal to the number of query groups"):
Expand Down

0 comments on commit c6db15f

Please sign in to comment.