We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29d7ef commit c6db15fCopy full SHA for c6db15f
tests/python/test_ranking.py
@@ -76,7 +76,7 @@ def test_ranking_with_weighted_data():
76
assert all(p <= q for p, q in zip(is_sorted, is_sorted[1:]))
77
78
79
-def test_error_msg(self) -> None:
+def test_error_msg() -> None:
80
X, y, qid, w = tm.make_ltr(10, 2, 2, 2)
81
ranker = xgboost.XGBRanker()
82
with pytest.raises(ValueError, match=r"equal to the number of query groups"):
0 commit comments