Skip to content

Commit c6db15f

Browse files
committed
Fix test.
1 parent d29d7ef commit c6db15f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/python/test_ranking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_ranking_with_weighted_data():
7676
assert all(p <= q for p, q in zip(is_sorted, is_sorted[1:]))
7777

7878

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

0 commit comments

Comments
 (0)