File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,10 @@ def test_multiclass_error():
367367 y = np .array ([0 , 1 , 2 ]) # Three classes
368368
369369 clf = LinearBoostClassifier ()
370- with pytest .raises (ValueError , match = "Only binary classification is supported" ):
370+ with pytest .raises (
371+ ValueError ,
372+ match = r"Only binary classification is supported|Unknown label type: non-binary" ,
373+ ):
371374 clf .fit (X , y )
372375
373376
Original file line number Diff line number Diff line change @@ -256,7 +256,10 @@ def test_multiclass_error():
256256 y = np .array ([0 , 1 , 2 ]) # Three classes
257257
258258 sefr = SEFR ()
259- with pytest .raises (ValueError , match = "Only binary classification is supported" ):
259+ with pytest .raises (
260+ ValueError ,
261+ match = r"Only binary classification is supported|Unknown label type: non-binary" ,
262+ ):
260263 sefr .fit (X , y )
261264
262265
You can’t perform that action at this time.
0 commit comments