From 44ab4204907414275e0deb15348f6a1dea0b9b84 Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Fri, 13 Nov 2020 15:23:25 +0100 Subject: [PATCH 1/2] MNT silence spurious FitFailedWarning in test_search_cv --- setup.cfg | 4 ++-- sklearn/tests/test_common.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index db5712730652e..2e07f6a4c3aa5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,8 +13,8 @@ addopts = --ignore maint_tools --ignore asv_benchmarks --doctest-modules - --disable-pytest-warnings - -rxXs + #--disable-pytest-warnings + #-rxXs filterwarnings = ignore:the matrix subclass:PendingDeprecationWarning diff --git a/sklearn/tests/test_common.py b/sklearn/tests/test_common.py index 2a555ccb838c3..985ef7e577687 100644 --- a/sklearn/tests/test_common.py +++ b/sklearn/tests/test_common.py @@ -20,6 +20,7 @@ from sklearn.utils import all_estimators from sklearn.utils._testing import ignore_warnings from sklearn.exceptions import ConvergenceWarning, SkipTestWarning +from sklearn.exceptions import FitFailedWarning from sklearn.utils.estimator_checks import check_estimator import sklearn @@ -319,6 +320,7 @@ def test_search_cv(estimator, check, request): ConvergenceWarning, UserWarning, FutureWarning, + FitFailedWarning, ) ): check(estimator) From 11f44acd1ec0faccd9f28f030966b9dce4f6a3a4 Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Fri, 13 Nov 2020 15:57:24 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 2e07f6a4c3aa5..db5712730652e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,8 +13,8 @@ addopts = --ignore maint_tools --ignore asv_benchmarks --doctest-modules - #--disable-pytest-warnings - #-rxXs + --disable-pytest-warnings + -rxXs filterwarnings = ignore:the matrix subclass:PendingDeprecationWarning