8000 TST Ignore warnings in common test to avoid collection errors (#12093) · scikit-learn/scikit-learn@8e1e643 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e1e643

Browse files
massichjnothman
authored andcommitted
TST Ignore warnings in common test to avoid collection errors (#12093)
1 parent 4978ed0 commit 8e1e643

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sklearn/tests/test_common.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ def _tested_non_meta_estimators():
7272

7373

7474
def _generate_checks_per_estimator(check_generator, estimators):
75-
for name, Estimator in estimators:
76-
estimator = Estimator()
77-
for check in check_generator(name, estimator):
78-
yield name, Estimator, check
75+
with ignore_warnings(category=(DeprecationWarning, FutureWarning)):
76+
for name, Estimator in estimators:
77+
estimator = Estimator()
78+
for check in check_generator(name, estimator):
79+
yield name, Estimator, check
7980

8081

8182
def _rename_partial(val):

0 commit comments

Comments
 (0)
0