Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2943786

Browse files
committed
TST: avoid nose running sklearn.test as a test
1 parent 372f59e commit 2943786

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sklearn/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ def test(*args, **kwargs):
4747
for more information.
4848
4949
This function, `sklearn.test()` does not do anything. It does not run
50-
the tests and will be deprecated in release 0.16.
50+
the tests and will be removed in release 0.16.
5151
""", stacklevel=2)
5252

53+
# The following line is useful so that nosetests doesn't consider
54+
# "test" as a test function
55+
test.__test__ = False
56+
5357
__all__ = ['cross_validation', 'cluster', 'covariance',
5458
'datasets', 'decomposition', 'feature_extraction',
5559
'feature_selection', 'semi_supervised',

0 commit comments

Comments
 (0)