From 2943786253503a3ecb913e54fb249f3a67c6f113 Mon Sep 17 00:00:00 2001
From: Gael Varoquaux <gael.varoquaux@normalesup.org>
Date: Wed, 7 Aug 2013 22:50:02 +0200
Subject: [PATCH] TST: avoid nose running sklearn.test as a test

---
 sklearn/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sklearn/__init__.py b/sklearn/__init__.py
index 7651c6a482..133a742a8f 100644
--- a/sklearn/__init__.py
+++ b/sklearn/__init__.py
@@ -47,9 +47,13 @@ See the web page http://scikit-learn.org/stable/install.html#testing
 for more information.
 
 This function, `sklearn.test()` does not do anything. It does not run
-the tests and will be deprecated in release 0.16.
+the tests and will be removed in release 0.16.
 """, stacklevel=2)
 
+    # The following line is useful so that nosetests doesn't consider
+    # "test" as a test function
+    test.__test__ = False
+
     __all__ = ['cross_validation', 'cluster', 'covariance',
                'datasets', 'decomposition', 'feature_extraction',
                'feature_selection', 'semi_supervised',
-- 
GitLab