{"action":"created","comment":{"url":"https://api.github.com/repos/numpy/numpy/pulls/comments/50013641","id":50013641,"diff_hunk":"@@ -4979,29 +5037,69 @@ def test_2d(self):\n                 '       [ 501,  502,  503, ...,  999, 1000, 1001]])'\n         assert_(repr(A) == reprA)\n \n+\n class TestChoose(TestCase):\n     def setUp(self):\n         self.x = 2*np.ones((3,), dtype=int)\n         self.y = 3*np.ones((3,), dtype=int)\n         self.x2 = 2*np.ones((2, 3), dtype=int)\n         self.y2 = 3*np.ones((2, 3), dtype=int)\n-        self.ind = [0, 0, 1]\n+        self.ind = np.array([0, 0, 1])\n \n     def test_basic(self):\n-        A = np.choose(self.ind, (self.x, self.y))\n+        A = self.ind.choose((self.x, self.y))","path":"numpy/core/tests/test_multiarray.py","position":497,"original_position":497,"commit_id":"1f9bd3b6e8bc65e99d05079249e0937565ac013f","original_commit_id":"1f9bd3b6e8bc65e99d05079249e0937565ac013f","user":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"body":"Should keep the first version in order to test the funtion, not the method.","created_at":"2016-01-18T15:54:17Z","updated_at":"2016-01-18T15:54:17Z","html_url":"https://github.com/numpy/numpy/pull/7027#discussion_r50013641","pull_request_url":"https://api.github.com/repos/numpy/numpy/pulls/7027","_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments/50013641"},"html":{"href":"https://github.com/numpy/numpy/pull/7027#discussion_r50013641"},"pull_request":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7027"}}},"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/7027","id":56250800,"html_url":"https://github.com/numpy/numpy/pull/7027","diff_url":"https://github.com/numpy/numpy/pull/7027.diff","patch_url":"https://github.com/numpy/numpy/pull/7027.patch","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7027","number":7027,"state":"open","locked":false,"title":"TST, MAINT: Lots of new tests for fromnumeric.py","user":{"login":"gfyoung","id":9273653,"avatar_url":"https://avatars.githubusercontent.com/u/9273653?v=3","gravatar_id":"","url":"https://api.github.com/users/gfyoung","html_url":"https://github.com/gfyoung","followers_url":"https://api.github.com/users/gfyoung/followers","following_url":"https://api.github.com/users/gfyoung/following{/other_user}","gists_url":"https://api.github.com/users/gfyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/gfyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfyoung/subscriptions","organizations_url":"https://api.github.com/users/gfyoung/orgs","repos_url":"https://api.github.com/users/gfyoung/repos","events_url":"https://api.github.com/users/gfyoung/events{/privacy}","received_events_url":"https://api.github.com/users/gfyoung/received_events","type":"User","site_admin":false},"body":"Follow-up from #7000 in which I found there seemed to be a gap in testing for the ```numpy/numpy/core/fromnumeric.py``` file.  This PR improves the coverage on the methods defined in that file.","created_at":"2016-01-16T10:26:52Z","updated_at":"2016-01-18T15:54:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"711e56be025278041514e4c600aea15d2fb21ce4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numpy/numpy/pulls/7027/commits","review_comments_url":"https://api.github.com/repos/numpy/numpy/pulls/7027/comments","review_comment_url":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7027/comments","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/1f9bd3b6e8bc65e99d05079249e0937565ac013f","head":{"label":"gfyoung:test_fromnumeric_expand","ref":"test_fromnumeric_expand","sha":"1f9bd3b6e8bc65e99d05079249e0937565ac013f","user":{"login":"gfyoung","id":9273653,"avatar_url":"https://avatars.githubusercontent.com/u/9273653?v=3","gravatar_id":"","url":"https://api.github.com/users/gfyoung","html_url":"https://github.com/gfyoung","followers_url":"https://api.github.com/users/gfyoung/followers","following_url":"https://api.github.com/users/gfyoung/following{/other_user}","gists_url":"https://api.github.com/users/gfyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/gfyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfyoung/subscriptions","organizations_url":"https://api.github.com/users/gfyoung/orgs","repos_url":"https://api.github.com/users/gfyoung/repos","events_url":"https://api.github.com/users/gfyoung/events{/privacy}","received_events_url":"https://api.github.com/users/gfyoung/received_events","type":"User","site_admin":false},"repo":{"id":47796553,"name":"numpy","full_name":"gfyoung/numpy","owner":{"login":"gfyoung","id":9273653,"avatar_url":"https://avatars.githubusercontent.com/u/9273653?v=3","gravatar_id":"","url":"https://api.github.com/users/gfyoung","html_url":"https://github.com/gfyoung","followers_url":"https://api.github.com/users/gfyoung/followers","following_url":"https://api.github.com/users/gfyoung/following{/other_user}","gists_url":"https://api.github.com/users/gfyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/gfyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfyoung/subscriptions","organizations_url":"https://api.github.com/users/gfyoung/orgs","repos_url":"https://api.github.com/users/gfyoung/repos","events_url":"https://api.github.com/users/gfyoung/events{/privacy}","received_events_url":"https://api.github.com/users/gfyoung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gfyoung/numpy","description":"Numpy main repository","fork":true,"url":"https://api.github.com/repos/gfyoung/numpy","forks_url":"https://api.github.com/repos/gfyoung/numpy/forks","keys_url":"https://api.github.com/repos/gfyoung/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gfyoung/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gfyoung/numpy/teams","hooks_url":"https://api.github.com/repos/gfyoung/numpy/hooks","issue_events_url":"https://api.github.com/repos/gfyoung/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/gfyoung/numpy/events","assignees_url":"https://api.github.com/repos/gfyoung/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/gfyoung/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/gfyoung/numpy/tags","blobs_url":"https://api.github.com/repos/gfyoung/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gfyoung/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gfyoung/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/gfyoung/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gfyoung/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/gfyoung/numpy/languages","stargazers_url":"https://api.github.com/repos/gfyoung/numpy/stargazers","contributors_url":"https://api.github.com/repos/gfyoung/numpy/contributors","subscribers_url":"https://api.github.com/repos/gfyoung/numpy/subscribers","subscription_url":"https://api.github.com/repos/gfyoung/numpy/subscription","commits_url":"https://api.github.com/repos/gfyoung/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/gfyoung/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/gfyoung/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/gfyoung/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/gfyoung/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/gfyoung/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gfyoung/numpy/merges","archive_url":"https://api.github.com/repos/gfyoung/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gfyoung/numpy/downloads","issues_url":"https://api.github.com/repos/gfyoung/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/gfyoung/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/gfyoung/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/gfyoung/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gfyoung/numpy/labels{/name}","releases_url":"https://api.github.com/repos/gfyoung/numpy/releases{/id}","created_at":"2015-12-11T00:59:45Z","updated_at":"2016-01-11T23:36:36Z","pushed_at":"2016-01-18T15:48:08Z","git_url":"git://github.com/gfyoung/numpy.git","ssh_url":"git@github.com:gfyoung/numpy.git","clone_url":"https://github.com/gfyoung/numpy.git","svn_url":"https://github.com/gfyoung/numpy","homepage":"http://www.numpy.org/","size":42926,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"numpy:master","ref":"master","sha":"46bb5350148ea271dc336ccda33b3a8857d57ad0","user":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"repo":{"id":908607,"name":"numpy","full_name":"numpy/numpy","owner":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numpy/numpy","description":"Numpy main repository","fork":false,"url":"https://api.github.com/repos/numpy/numpy","forks_url":"https://api.github.com/repos/numpy/numpy/forks","keys_url":"https://api.github.com/repos/numpy/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numpy/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numpy/numpy/teams","hooks_url":"https://api.github.com/repos/numpy/numpy/hooks","issue_events_url":"https://api.github.com/repos/numpy/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/numpy/numpy/events","assignees_url":"https://api.github.com/repos/numpy/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/numpy/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/numpy/numpy/tags","blobs_url":"https://api.github.com/repos/numpy/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numpy/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numpy/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/numpy/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/numpy/numpy/languages","stargazers_url":"https://api.github.com/repos/numpy/numpy/stargazers","contributors_url":"https://api.github.com/repos/numpy/numpy/contributors","subscribers_url":"https://api.github.com/repos/numpy/numpy/subscribers","subscription_url":"https://api.github.com/repos/numpy/numpy/subscription","commits_url":"https://api.github.com/repos/numpy/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/numpy/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/numpy/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/numpy/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/numpy/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/numpy/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numpy/numpy/merges","archive_url":"https://api.github.com/repos/numpy/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numpy/numpy/downloads","issues_url":"https://api.github.com/repos/numpy/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/numpy/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/numpy/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/numpy/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numpy/numpy/labels{/name}","releases_url":"https://api.github.com/repos/numpy/numpy/releases{/id}","created_at":"2010-09-13T23:02:39Z","updated_at":"2016-01-18T13:25:10Z","pushed_at":"2016-01-18T15:41:28Z","git_url":"git://github.com/numpy/numpy.git","ssh_url":"git@github.com:numpy/numpy.git","clone_url":"https://github.com/numpy/numpy.git","svn_url":"https://github.com/numpy/numpy","homepage":"http://www.numpy.org/","size":64073,"stargazers_count":2521,"watchers_count":2521,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1329,"mirror_url":null,"open_issues_count":1080,"forks":1329,"open_issues":1080,"watchers":2521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7027"},"html":{"href":"https://github.com/numpy/numpy/pull/7027"},"issue":{"href":"https://api.github.com/repos/numpy/numpy/issues/7027"},"comments":{"href":"https://api.github.com/repos/numpy/numpy/issues/7027/comments"},"review_comments":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7027/comments"},"review_comment":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7027/commits"},"statuses":{"href":"https://api.github.com/repos/numpy/numpy/statuses/1f9bd3b6e8bc65e99d05079249e0937565ac013f"}}}}