{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6335","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6335/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6335/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6335/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/6335","id":132961385,"number":6335,"title":"IndexError: invalid slice in test_non_meta_estimators called with GenericUnivariateSelect","user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars.githubusercontent.com/u/89061?v=3","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Moderate","name":"Moderate","color":"e102d8"},{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Need%20Contributor","name":"Need Contributor","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-02-11T12:35:23Z","updated_at":"2016-02-11T14:49:55Z","closed_at":null,"body":"When running the tests with Python 3.5 against numpy and scipy dev from:\r\n\r\nhttp://travis-dev-wheels.scipy.org\r\n\r\n```\r\n======================================================================\r\nERROR: sklearn.tests.test_common.test_non_meta_estimators('GenericUnivariateSelect', <class 'sklearn.feature_selection.univariate_selection.GenericUnivariateSelect'>)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/venv/lib/python3.5/site-packages/nose/case.py\", line 198, in runTest\r\n    self.test(*self.arg)\r\n  File \"/code/sklearn/utils/testing.py\", line 319, in wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/code/sklearn/utils/estimator_checks.py\", line 703, in check_estimators_dtypes\r\n    getattr(estimator, method)(X_train)\r\n  File \"/code/sklearn/feature_selection/base.py\", line 76, in transform\r\n    mask = self.get_support()\r\n  File \"/code/sklearn/feature_selection/base.py\", line 47, in get_support\r\n    mask = self._get_support_mask()\r\n  File \"/code/sklearn/feature_selection/univariate_selection.py\", line 724, in _get_support_mask\r\n    return selector._get_support_mask()\r\n  File \"/code/sklearn/feature_selection/univariate_selection.py\", line 414, in _get_support_mask\r\n    kept_ties = ties[:max_feats - mask.sum()]\r\nIndexError: invalid slice\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/182895224","html_url":"https://github.com/scikit-learn/scikit-learn/issues/6335#issuecomment-182895224","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6335","id":182895224,"user":{"login":"maniteja123","id":6291963,"avatar_url":"https://avatars.githubusercontent.com/u/6291963?v=3","gravatar_id":"","url":"https://api.github.com/users/maniteja123","html_url":"https://github.com/maniteja123","followers_url":"https://api.github.com/users/maniteja123/followers","following_url":"https://api.github.com/users/maniteja123/following{/other_user}","gists_url":"https://api.github.com/users/maniteja123/gists{/gist_id}","starred_url":"https://api.github.com/users/maniteja123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniteja123/subscriptions","organizations_url":"https://api.github.com/users/maniteja123/orgs","repos_url":"https://api.github.com/users/maniteja123/repos","events_url":"https://api.github.com/users/maniteja123/events{/privacy}","received_events_url":"https://api.github.com/users/maniteja123/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T14:49:55Z","updated_at":"2016-02-11T14:49:55Z","body":"Actually even after the change it is failing because the test directly calls ``get_support_mask`` without calling ``__init__``. Should I cast it in the ``_get_support_mask`` function also ?"}}