8000 MAINT remove duplicate warning category from tests by PSSF23 · Pull Request #21056 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT remove duplicate warning category from tests #21056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions sklearn/tests/test_common.py
761A
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ def _tested_estimators(type_filter=None):
@parametrize_with_checks(list(_tested_estimators()))
def test_estimators(estimator, check, request):
# Common tests for estimator instances
with ignore_warnings(
category=(FutureWarning, ConvergenceWarning, UserWarning, FutureWarning)
):
with ignore_warnings(category=(FutureWarning, ConvergenceWarning, UserWarning)):
_set_checking_parameters(estimator)
check(estimator)

Expand Down Expand Up @@ -304,7 +302,6 @@ def test_search_cv(estimator, check, request):
FutureWarning,
ConvergenceWarning,
UserWarning,
FutureWarning,
FitFailedWarning,
)
):
Expand Down
0