Skip to content

Commit dd338b1

Browse files
yarikopticamueller
authored andcommitted
BF: explicitly mark train_test_split as not the one for nosetesting
otherwise nose might consider running it resulting in File "/tmp/buildd/scikit-learn-0.13/debian/python-sklearn/usr/lib/python2.7/dist-packages/sklearn/cross_validation.py", line 1349, in train_test_split raise ValueError("At least one array required as input") ValueError: At least one array required as input as was also reported on the mailing list Message-ID: <50F6B2D3.1010801@sina.com>
1 parent 1746100 commit dd338b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/cross_validation.py

+2
Original file line numberDiff line numberDiff line change
@@ -1378,3 +1378,5 @@ def train_test_split(*arrays, **options):
13781378
splitted.append(a[train])
13791379
splitted.append(a[test])
13801380
return splitted
1381+
1382+
train_test_split.__test__ = False # to avoid a pb with nosetests

0 commit comments

Comments
 (0)