{"action":"created","comment":{"url":"https://api.github.com/repos/deliveryhero/lymph/pulls/comments/27866243","id":27866243,"diff_hunk":"@@ -0,0 +1,38 @@\n+import unittest\n+\n+import gevent\n+\n+from lymph.utils import gpool\n+\n+\n+def some_work():\n+    pass\n+\n+\n+class NonBlockingPoolTestCase(unittest.TestCase):\n+\n+    def setUp(self):\n+        self.pool = gpool.NonBlockingPool(size=2)\n+\n+    def test_full_pool_status(self):\n+        self.pool.spawn(some_work)\n+        self.pool.spawn(some_work)\n+\n+        self.assertTrue(self.pool.full())\n+        self.assertEqual(self.pool.free_count(), 0)\n+\n+    def test_spawn_on_full_pool_should_fail(self):\n+        self.pool.spawn(some_work)\n+        self.pool.spawn(some_work)\n+\n+        with self.assertRaises(gpool.RejectExcecutionError):\n+            self.pool.spawn(some_work)","path":"lymph/tests/test_utils.py","position":29,"original_position":29,"commit_id":"65f4972c01e7889ca92d4885af224da5a33ac849","original_commit_id":"997c88944500a57b89d888f02de8ee31ddc89f97","user":{"login":"mamachanko","id":1182927,"avatar_url":"https://avatars.githubusercontent.com/u/1182927?v=3","gravatar_id":"","url":"https://api.github.com/users/mamachanko","html_url":"https://github.com/mamachanko","followers_url":"https://api.github.com/users/mamachanko/followers","following_url":"https://api.github.com/users/mamachanko/following{/other_user}","gists_url":"https://api.github.com/users/mamachanko/gists{/gist_id}","starred_url":"https://api.github.com/users/mamachanko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamachanko/subscriptions","organizations_url":"https://api.github.com/users/mamachanko/orgs","repos_url":"https://api.github.com/users/mamachanko/repos","events_url":"https://api.github.com/users/mamachanko/events{/privacy}","received_events_url":"https://api.github.com/users/mamachanko/received_events","type":"User","site_admin":false},"body":"I get it!","created_at":"2015-04-07T10:21:19Z","updated_at":"2015-04-07T10:21:19Z","html_url":"https://github.com/deliveryhero/lymph/pull/159#discussion_r27866243","pull_request_url":"https://api.github.com/repos/deliveryhero/lymph/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/comments/27866243"},"html":{"href":"https://github.com/deliveryhero/lymph/pull/159#discussion_r27866243"},"pull_request":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/deliveryhero/lymph/pulls/159","id":32747185,"html_url":"https://github.com/deliveryhero/lymph/pull/159","diff_url":"https://github.com/deliveryhero/lymph/pull/159.diff","patch_url":"https://github.com/deliveryhero/lymph/pull/159.patch","issue_url":"https://api.github.com/repos/deliveryhero/lymph/issues/159","number":159,"state":"open","locked":false,"title":"Add regression test for https://github.com/deliveryhero/lymph/pull/157","user":{"login":"mouadino","id":1884531,"avatar_url":"https://avatars.githubusercontent.com/u/1884531?v=3","gravatar_id":"","url":"https://api.github.com/users/mouadino","html_url":"https://github.com/mouadino","followers_url":"https://api.github.com/users/mouadino/followers","following_url":"https://api.github.com/users/mouadino/following{/other_user}","gists_url":"https://api.github.com/users/mouadino/gists{/gist_id}","starred_url":"https://api.github.com/users/mouadino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouadino/subscriptions","organizations_url":"https://api.github.com/users/mouadino/orgs","repos_url":"https://api.github.com/users/mouadino/repos","events_url":"https://api.github.com/users/mouadino/events{/privacy}","received_events_url":"https://api.github.com/users/mouadino/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T09:32:22Z","updated_at":"2015-04-07T10:21:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cddccbc337f4027eb00e447e62fa3b1eb8f382e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deliveryhero/lymph/pulls/159/commits","review_comments_url":"https://api.github.com/repos/deliveryhero/lymph/pulls/159/comments","review_comment_url":"https://api.github.com/repos/deliveryhero/lymph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deliveryhero/lymph/issues/159/comments","statuses_url":"https://api.github.com/repos/deliveryhero/lymph/statuses/65f4972c01e7889ca92d4885af224da5a33ac849","head":{"label":"mouadino:test-pool","ref":"test-pool","sha":"65f4972c01e7889ca92d4885af224da5a33ac849","user":{"login":"mouadino","id":1884531,"avatar_url":"https://avatars.githubusercontent.com/u/1884531?v=3","gravatar_id":"","url":"https://api.github.com/users/mouadino","html_url":"https://github.com/mouadino","followers_url":"https://api.github.com/users/mouadino/followers","following_url":"https://api.github.com/users/mouadino/following{/other_user}","gists_url":"https://api.github.com/users/mouadino/gists{/gist_id}","starred_url":"https://api.github.com/users/mouadino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouadino/subscriptions","organizations_url":"https://api.github.com/users/mouadino/orgs","repos_url":"https://api.github.com/users/mouadino/repos","events_url":"https://api.github.com/users/mouadino/events{/privacy}","received_events_url":"https://api.github.com/users/mouadino/received_events","type":"User","site_admin":false},"repo":{"id":24723876,"name":"lymph","full_name":"mouadino/lymph","owner":{"login":"mouadino","id":1884531,"avatar_url":"https://avatars.githubusercontent.com/u/1884531?v=3","gravatar_id":"","url":"https://api.github.com/users/mouadino","html_url":"https://github.com/mouadino","followers_url":"https://api.github.com/users/mouadino/followers","following_url":"https://api.github.com/users/mouadino/following{/other_user}","gists_url":"https://api.github.com/users/mouadino/gists{/gist_id}","starred_url":"https://api.github.com/users/mouadino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouadino/subscriptions","organizations_url":"https://api.github.com/users/mouadino/orgs","repos_url":"https://api.github.com/users/mouadino/repos","events_url":"https://api.github.com/users/mouadino/events{/privacy}","received_events_url":"https://api.github.com/users/mouadino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mouadino/lymph","description":"framework for python services","fork":true,"url":"https://api.github.com/repos/mouadino/lymph","forks_url":"https://api.github.com/repos/mouadino/lymph/forks","keys_url":"https://api.github.com/repos/mouadino/lymph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mouadino/lymph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mouadino/lymph/teams","hooks_url":"https://api.github.com/repos/mouadino/lymph/hooks","issue_events_url":"https://api.github.com/repos/mouadino/lymph/issues/events{/number}","events_url":"https://api.github.com/repos/mouadino/lymph/events","assignees_url":"https://api.github.com/repos/mouadino/lymph/assignees{/user}","branches_url":"https://api.github.com/repos/mouadino/lymph/branches{/branch}","tags_url":"https://api.github.com/repos/mouadino/lymph/tags","blobs_url":"https://api.github.com/repos/mouadino/lymph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mouadino/lymph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mouadino/lymph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mouadino/lymph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mouadino/lymph/statuses/{sha}","languages_url":"https://api.github.com/repos/mouadino/lymph/languages","stargazers_url":"https://api.github.com/repos/mouadino/lymph/stargazers","contributors_url":"https://api.github.com/repos/mouadino/lymph/contributors","subscribers_url":"https://api.github.com/repos/mouadino/lymph/subscribers","subscription_url":"https://api.github.com/repos/mouadino/lymph/subscription","commits_url":"https://api.github.com/repos/mouadino/lymph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mouadino/lymph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mouadino/lymph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mouadino/lymph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mouadino/lymph/contents/{+path}","compare_url":"https://api.github.com/repos/mouadino/lymph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mouadino/lymph/merges","archive_url":"https://api.github.com/repos/mouadino/lymph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mouadino/lymph/downloads","issues_url":"https://api.github.com/repos/mouadino/lymph/issues{/number}","pulls_url":"https://api.github.com/repos/mouadino/lymph/pulls{/number}","milestones_url":"https://api.github.com/repos/mouadino/lymph/milestones{/number}","notifications_url":"https://api.github.com/repos/mouadino/lymph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mouadino/lymph/labels{/name}","releases_url":"https://api.github.com/repos/mouadino/lymph/releases{/id}","created_at":"2014-10-02T15:09:18Z","updated_at":"2015-04-07T09:32:17Z","pushed_at":"2015-04-07T10:04:17Z","git_url":"git://github.com/mouadino/lymph.git","ssh_url":"git@github.com:mouadino/lymph.git","clone_url":"https://github.com/mouadino/lymph.git","svn_url":"https://github.com/mouadino/lymph","homepage":"","size":1419,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deliveryhero:master","ref":"master","sha":"25fe1c99812a948c6aa07571201a43bfcee5e0eb","user":{"login":"deliveryhero","id":7225556,"avatar_url":"https://avatars.githubusercontent.com/u/7225556?v=3","gravatar_id":"","url":"https://api.github.com/users/deliveryhero","html_url":"https://github.com/deliveryhero","followers_url":"https://api.github.com/users/deliveryhero/followers","following_url":"https://api.github.com/users/deliveryhero/following{/other_user}","gists_url":"https://api.github.com/users/deliveryhero/gists{/gist_id}","starred_url":"https://api.github.com/users/deliveryhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliveryhero/subscriptions","organizations_url":"https://api.github.com/users/deliveryhero/orgs","repos_url":"https://api.github.com/users/deliveryhero/repos","events_url":"https://api.github.com/users/deliveryhero/events{/privacy}","received_events_url":"https://api.github.com/users/deliveryhero/received_events","type":"Organization","site_admin":false},"repo":{"id":20250192,"name":"lymph","full_name":"deliveryhero/lymph","owner":{"login":"deliveryhero","id":7225556,"avatar_url":"https://avatars.githubusercontent.com/u/7225556?v=3","gravatar_id":"","url":"https://api.github.com/users/deliveryhero","html_url":"https://github.com/deliveryhero","followers_url":"https://api.github.com/users/deliveryhero/followers","following_url":"https://api.github.com/users/deliveryhero/following{/other_user}","gists_url":"https://api.github.com/users/deliveryhero/gists{/gist_id}","starred_url":"https://api.github.com/users/deliveryhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliveryhero/subscriptions","organizations_url":"https://api.github.com/users/deliveryhero/orgs","repos_url":"https://api.github.com/users/deliveryhero/repos","events_url":"https://api.github.com/users/deliveryhero/events{/privacy}","received_events_url":"https://api.github.com/users/deliveryhero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deliveryhero/lymph","description":"framework for python services","fork":false,"url":"https://api.github.com/repos/deliveryhero/lymph","forks_url":"https://api.github.com/repos/deliveryhero/lymph/forks","keys_url":"https://api.github.com/repos/deliveryhero/lymph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deliveryhero/lymph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deliveryhero/lymph/teams","hooks_url":"https://api.github.com/repos/deliveryhero/lymph/hooks","issue_events_url":"https://api.github.com/repos/deliveryhero/lymph/issues/events{/number}","events_url":"https://api.github.com/repos/deliveryhero/lymph/events","assignees_url":"https://api.github.com/repos/deliveryhero/lymph/assignees{/user}","branches_url":"https://api.github.com/repos/deliveryhero/lymph/branches{/branch}","tags_url":"https://api.github.com/repos/deliveryhero/lymph/tags","blobs_url":"https://api.github.com/repos/deliveryhero/lymph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deliveryhero/lymph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deliveryhero/lymph/git/refs{/sha}","trees_url":"https://api.github.com/repos/deliveryhero/lymph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deliveryhero/lymph/statuses/{sha}","languages_url":"https://api.github.com/repos/deliveryhero/lymph/languages","stargazers_url":"https://api.github.com/repos/deliveryhero/lymph/stargazers","contributors_url":"https://api.github.com/repos/deliveryhero/lymph/contributors","subscribers_url":"https://api.github.com/repos/deliveryhero/lymph/subscribers","subscription_url":"https://api.github.com/repos/deliveryhero/lymph/subscription","commits_url":"https://api.github.com/repos/deliveryhero/lymph/commits{/sha}","git_commits_url":"https://api.github.com/repos/deliveryhero/lymph/git/commits{/sha}","comments_url":"https://api.github.com/repos/deliveryhero/lymph/comments{/number}","issue_comment_url":"https://api.github.com/repos/deliveryhero/lymph/issues/comments{/number}","contents_url":"https://api.github.com/repos/deliveryhero/lymph/contents/{+path}","compare_url":"https://api.github.com/repos/deliveryhero/lymph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deliveryhero/lymph/merges","archive_url":"https://api.github.com/repos/deliveryhero/lymph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deliveryhero/lymph/downloads","issues_url":"https://api.github.com/repos/deliveryhero/lymph/issues{/number}","pulls_url":"https://api.github.com/repos/deliveryhero/lymph/pulls{/number}","milestones_url":"https://api.github.com/repos/deliveryhero/lymph/milestones{/number}","notifications_url":"https://api.github.com/repos/deliveryhero/lymph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deliveryhero/lymph/labels{/name}","releases_url":"https://api.github.com/repos/deliveryhero/lymph/releases{/id}","created_at":"2014-05-28T08:24:51Z","updated_at":"2015-04-05T11:56:55Z","pushed_at":"2015-04-07T10:04:17Z","git_url":"git://github.com/deliveryhero/lymph.git","ssh_url":"git@github.com:deliveryhero/lymph.git","clone_url":"https://github.com/deliveryhero/lymph.git","svn_url":"https://github.com/deliveryhero/lymph","homepage":"","size":2689,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":11,"forks":24,"open_issues":11,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/159"},"html":{"href":"https://github.com/deliveryhero/lymph/pull/159"},"issue":{"href":"https://api.github.com/repos/deliveryhero/lymph/issues/159"},"comments":{"href":"https://api.github.com/repos/deliveryhero/lymph/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deliveryhero/lymph/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/deliveryhero/lymph/statuses/65f4972c01e7889ca92d4885af224da5a33ac849"}}}}