Skip to content

Commit cf1bd2f

Browse files
committed
Correct ignore_warnings usage
1 parent 686c731 commit cf1bd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/inspection/tests/test_partial_dependence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_multiclass_multioutput(Estimator):
263263
y = np.array([y, y]).T
264264

265265
est = Estimator()
266-
with ignore_warnings(DeprecationWarning):
266+
with ignore_warnings(category=DeprecationWarning):
267267
est.fit(X, y)
268268

269269
with pytest.raises(

0 commit comments

Comments
 (0)