MNT silence spurious FitFailedWarning in test_search_cv
@@ -19,6 +19,7 @@ import pytest
from sklearn.utils import all_estimators
from sklearn.utils._testing import ignore_warnings
from sklearn.exceptions import ConvergenceWarning
+from sklearn.exceptions import FitFailedWarning
from sklearn.utils.estimator_checks import check_estimator
import sklearn
@@ -246,6 +247,7 @@ def test_search_cv(estimator, check, request):
ConvergenceWarning,
UserWarning,
FutureWarning,
+ FitFailedWarning,
)
):
check(estimator)
