8000 TESTS: Update error message in test_negative_ccp_alpha · sebp/scikit-survival@649d02e · GitHub
[go: up one dir, main page]

Skip to content

Commit 649d02e

Browse files
committed
TESTS: Update error message in test_negative_ccp_alpha
See scikit-learn/scikit-learn#21990
1 parent e446939 commit 649d02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_boosting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_negative_ccp_alpha(make_whas500):
207207
whas500_data = make_whas500(with_std=False, to_numeric=True)
208208

209209
clf = GradientBoostingSurvivalAnalysis()
210-
msg = "ccp_alpha must be greater than or equal to 0"
210+
msg = "ccp_alpha == -1.0, must be >= 0.0"
211211

212212
clf.set_params(ccp_alpha=-1.0)
213213
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)
0