Skip to content

Commit

Permalink
MAINT Hide train_test_split from nose test discovery. (#10223)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer authored and jnothman committed Dec 6, 2017
1 parent 00878d0 commit ea6ea81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sklearn/model_selection/_split.py
Expand Up @@ -2059,6 +2059,9 @@ def train_test_split(*arrays, **options):
safe_indexing(a, test)) for a in arrays))


# Tell nose that train_test_split is not a test
train_test_split.__test__ = False

def _build_repr(self):
# XXX This is copied from BaseEstimator's get_params
cls = self.__class__
Expand Down

0 comments on commit ea6ea81

Please sign in to comment.