We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5286c3 commit 9bff7d6Copy full SHA for 9bff7d6
sklearn/tests/test_isotonic.py
@@ -186,7 +186,12 @@ def test_isotonic_regression_auto_increasing():
186
187
# Create model and fit_transform
188
ir = IsotonicRegression(increasing='auto')
189
- y_ = assert_no_warnings(ir.fit_transform, x, y)
+ with warnings.catch_warnings(record=True) as w:
190
+ warnings.simplefilter("always")
191
+ y_ = ir.fit_transform(x, y)
192
+ # work-around for pearson divide warnings in scipy <= 0.17.0
193
+ assert_true(all(["invalid value encountered in "
194
+ in str(warn.message) for warn in w]))
195
196
# Check that relationship increases
197
is_increasing = y_[0] < y_[-1]
0 commit comments