Skip to content

Commit 00cc485

Browse files
author
Fabian Pedregosa
committed
sklearn.test() does not like doctest that don't print.
Put a simple statement in deprecated's docstring.
1 parent 219bc2f commit 00cc485

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sklearn/utils/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ class deprecated(object):
167167
in an empty of parentheses:
168168
169169
>>> from sklearn.utils import deprecated
170+
>>> deprecated() # doctest: +ELLIPSIS
171+
<sklearn.utils.deprecated object at ...>
172+
170173
>>> @deprecated()
171174
... def some_function(): pass
172175

0 commit comments

Comments
 (0)