{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12","id":68344013,"html_url":"https://github.com/benediktschmitt/py-filelock/pull/12","diff_url":"https://github.com/benediktschmitt/py-filelock/pull/12.diff","patch_url":"https://github.com/benediktschmitt/py-filelock/pull/12.patch","issue_url":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/12","number":12,"state":"open","locked":false,"title":"Add a test thread class to surface test failures","user":{"login":"cottsay","id":1144588,"avatar_url":"https://avatars.githubusercontent.com/u/1144588?v=3","gravatar_id":"","url":"https://api.github.com/users/cottsay","html_url":"https://github.com/cottsay","followers_url":"https://api.github.com/users/cottsay/followers","following_url":"https://api.github.com/users/cottsay/following{/other_user}","gists_url":"https://api.github.com/users/cottsay/gists{/gist_id}","starred_url":"https://api.github.com/users/cottsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cottsay/subscriptions","organizations_url":"https://api.github.com/users/cottsay/orgs","repos_url":"https://api.github.com/users/cottsay/repos","events_url":"https://api.github.com/users/cottsay/events{/privacy}","received_events_url":"https://api.github.com/users/cottsay/received_events","type":"User","site_admin":false},"body":"Right now, if there is a test failure in a thread, the exception is displayed but the test never fails because the exception never happens in the main thread.\r\n\r\nThis change adds a wrapper to `threading.Thread` which catches exceptions therein and re-throws them when the thread is joined in the main thread.\r\n\r\nThe only downside is that only the first thread with an exception is seen, even though multiple threads may have failed.\r\n\r\nThanks,\r\n\r\n--scott","created_at":"2016-04-29T09:19:20Z","updated_at":"2016-04-29T09:19:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12/commits","review_comments_url":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12/comments","review_comment_url":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/12/comments","statuses_url":"https://api.github.com/repos/benediktschmitt/py-filelock/statuses/5f658ee05a49a037d687c214df57829625580236","head":{"label":"cottsay:test-thread-ex","ref":"test-thread-ex","sha":"5f658ee05a49a037d687c214df57829625580236","user":{"login":"cottsay","id":1144588,"avatar_url":"https://avatars.githubusercontent.com/u/1144588?v=3","gravatar_id":"","url":"https://api.github.com/users/cottsay","html_url":"https://github.com/cottsay","followers_url":"https://api.github.com/users/cottsay/followers","following_url":"https://api.github.com/users/cottsay/following{/other_user}","gists_url":"https://api.github.com/users/cottsay/gists{/gist_id}","starred_url":"https://api.github.com/users/cottsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cottsay/subscriptions","organizations_url":"https://api.github.com/users/cottsay/orgs","repos_url":"https://api.github.com/users/cottsay/repos","events_url":"https://api.github.com/users/cottsay/events{/privacy}","received_events_url":"https://api.github.com/users/cottsay/received_events","type":"User","site_admin":false},"repo":{"id":57365996,"name":"py-filelock","full_name":"cottsay/py-filelock","owner":{"login":"cottsay","id":1144588,"avatar_url":"https://avatars.githubusercontent.com/u/1144588?v=3","gravatar_id":"","url":"https://api.github.com/users/cottsay","html_url":"https://github.com/cottsay","followers_url":"https://api.github.com/users/cottsay/followers","following_url":"https://api.github.com/users/cottsay/following{/other_user}","gists_url":"https://api.github.com/users/cottsay/gists{/gist_id}","starred_url":"https://api.github.com/users/cottsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cottsay/subscriptions","organizations_url":"https://api.github.com/users/cottsay/orgs","repos_url":"https://api.github.com/users/cottsay/repos","events_url":"https://api.github.com/users/cottsay/events{/privacy}","received_events_url":"https://api.github.com/users/cottsay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cottsay/py-filelock","description":"A platform independent file lock for Python","fork":true,"url":"https://api.github.com/repos/cottsay/py-filelock","forks_url":"https://api.github.com/repos/cottsay/py-filelock/forks","keys_url":"https://api.github.com/repos/cottsay/py-filelock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cottsay/py-filelock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cottsay/py-filelock/teams","hooks_url":"https://api.github.com/repos/cottsay/py-filelock/hooks","issue_events_url":"https://api.github.com/repos/cottsay/py-filelock/issues/events{/number}","events_url":"https://api.github.com/repos/cottsay/py-filelock/events","assignees_url":"https://api.github.com/repos/cottsay/py-filelock/assignees{/user}","branches_url":"https://api.github.com/repos/cottsay/py-filelock/branches{/branch}","tags_url":"https://api.github.com/repos/cottsay/py-filelock/tags","blobs_url":"https://api.github.com/repos/cottsay/py-filelock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cottsay/py-filelock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cottsay/py-filelock/git/refs{/sha}","trees_url":"https://api.github.com/repos/cottsay/py-filelock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cottsay/py-filelock/statuses/{sha}","languages_url":"https://api.github.com/repos/cottsay/py-filelock/languages","stargazers_url":"https://api.github.com/repos/cottsay/py-filelock/stargazers","contributors_url":"https://api.github.com/repos/cottsay/py-filelock/contributors","subscribers_url":"https://api.github.com/repos/cottsay/py-filelock/subscribers","subscription_url":"https://api.github.com/repos/cottsay/py-filelock/subscription","commits_url":"https://api.github.com/repos/cottsay/py-filelock/commits{/sha}","git_commits_url":"https://api.github.com/repos/cottsay/py-filelock/git/commits{/sha}","comments_url":"https://api.github.com/repos/cottsay/py-filelock/comments{/number}","issue_comment_url":"https://api.github.com/repos/cottsay/py-filelock/issues/comments{/number}","contents_url":"https://api.github.com/repos/cottsay/py-filelock/contents/{+path}","compare_url":"https://api.github.com/repos/cottsay/py-filelock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cottsay/py-filelock/merges","archive_url":"https://api.github.com/repos/cottsay/py-filelock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cottsay/py-filelock/downloads","issues_url":"https://api.github.com/repos/cottsay/py-filelock/issues{/number}","pulls_url":"https://api.github.com/repos/cottsay/py-filelock/pulls{/number}","milestones_url":"https://api.github.com/repos/cottsay/py-filelock/milestones{/number}","notifications_url":"https://api.github.com/repos/cottsay/py-filelock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cottsay/py-filelock/labels{/name}","releases_url":"https://api.github.com/repos/cottsay/py-filelock/releases{/id}","deployments_url":"https://api.github.com/repos/cottsay/py-filelock/deployments","created_at":"2016-04-29T07:48:24Z","updated_at":"2016-04-29T07:48:25Z","pushed_at":"2016-04-29T09:15:35Z","git_url":"git://github.com/cottsay/py-filelock.git","ssh_url":"git@github.com:cottsay/py-filelock.git","clone_url":"https://github.com/cottsay/py-filelock.git","svn_url":"https://github.com/cottsay/py-filelock","homepage":"https://filelock.readthedocs.org/","size":42,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"benediktschmitt:master","ref":"master","sha":"d9dd5b6db3f5354d1b09dbda1808a67be7bd4f3e","user":{"login":"benediktschmitt","id":5073305,"avatar_url":"https://avatars.githubusercontent.com/u/5073305?v=3","gravatar_id":"","url":"https://api.github.com/users/benediktschmitt","html_url":"https://github.com/benediktschmitt","followers_url":"https://api.github.com/users/benediktschmitt/followers","following_url":"https://api.github.com/users/benediktschmitt/following{/other_user}","gists_url":"https://api.github.com/users/benediktschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/benediktschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benediktschmitt/subscriptions","organizations_url":"https://api.github.com/users/benediktschmitt/orgs","repos_url":"https://api.github.com/users/benediktschmitt/repos","events_url":"https://api.github.com/users/benediktschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/benediktschmitt/received_events","type":"User","site_admin":false},"repo":{"id":17098256,"name":"py-filelock","full_name":"benediktschmitt/py-filelock","owner":{"login":"benediktschmitt","id":5073305,"avatar_url":"https://avatars.githubusercontent.com/u/5073305?v=3","gravatar_id":"","url":"https://api.github.com/users/benediktschmitt","html_url":"https://github.com/benediktschmitt","followers_url":"https://api.github.com/users/benediktschmitt/followers","following_url":"https://api.github.com/users/benediktschmitt/following{/other_user}","gists_url":"https://api.github.com/users/benediktschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/benediktschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benediktschmitt/subscriptions","organizations_url":"https://api.github.com/users/benediktschmitt/orgs","repos_url":"https://api.github.com/users/benediktschmitt/repos","events_url":"https://api.github.com/users/benediktschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/benediktschmitt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benediktschmitt/py-filelock","description":"A platform independent file lock for Python","fork":false,"url":"https://api.github.com/repos/benediktschmitt/py-filelock","forks_url":"https://api.github.com/repos/benediktschmitt/py-filelock/forks","keys_url":"https://api.github.com/repos/benediktschmitt/py-filelock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benediktschmitt/py-filelock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benediktschmitt/py-filelock/teams","hooks_url":"https://api.github.com/repos/benediktschmitt/py-filelock/hooks","issue_events_url":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/events{/number}","events_url":"https://api.github.com/repos/benediktschmitt/py-filelock/events","assignees_url":"https://api.github.com/repos/benediktschmitt/py-filelock/assignees{/user}","branches_url":"https://api.github.com/repos/benediktschmitt/py-filelock/branches{/branch}","tags_url":"https://api.github.com/repos/benediktschmitt/py-filelock/tags","blobs_url":"https://api.github.com/repos/benediktschmitt/py-filelock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benediktschmitt/py-filelock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benediktschmitt/py-filelock/git/refs{/sha}","trees_url":"https://api.github.com/repos/benediktschmitt/py-filelock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benediktschmitt/py-filelock/statuses/{sha}","languages_url":"https://api.github.com/repos/benediktschmitt/py-filelock/languages","stargazers_url":"https://api.github.com/repos/benediktschmitt/py-filelock/stargazers","contributors_url":"https://api.github.com/repos/benediktschmitt/py-filelock/contributors","subscribers_url":"https://api.github.com/repos/benediktschmitt/py-filelock/subscribers","subscription_url":"https://api.github.com/repos/benediktschmitt/py-filelock/subscription","commits_url":"https://api.github.com/repos/benediktschmitt/py-filelock/commits{/sha}","git_commits_url":"https://api.github.com/repos/benediktschmitt/py-filelock/git/commits{/sha}","comments_url":"https://api.github.com/repos/benediktschmitt/py-filelock/comments{/number}","issue_comment_url":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/comments{/number}","contents_url":"https://api.github.com/repos/benediktschmitt/py-filelock/contents/{+path}","compare_url":"https://api.github.com/repos/benediktschmitt/py-filelock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benediktschmitt/py-filelock/merges","archive_url":"https://api.github.com/repos/benediktschmitt/py-filelock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benediktschmitt/py-filelock/downloads","issues_url":"https://api.github.com/repos/benediktschmitt/py-filelock/issues{/number}","pulls_url":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls{/number}","milestones_url":"https://api.github.com/repos/benediktschmitt/py-filelock/milestones{/number}","notifications_url":"https://api.github.com/repos/benediktschmitt/py-filelock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benediktschmitt/py-filelock/labels{/name}","releases_url":"https://api.github.com/repos/benediktschmitt/py-filelock/releases{/id}","deployments_url":"https://api.github.com/repos/benediktschmitt/py-filelock/deployments","created_at":"2014-02-23T00:29:27Z","updated_at":"2016-04-19T19:32:59Z","pushed_at":"2016-04-29T09:19:21Z","git_url":"git://github.com/benediktschmitt/py-filelock.git","ssh_url":"git@github.com:benediktschmitt/py-filelock.git","clone_url":"https://github.com/benediktschmitt/py-filelock.git","svn_url":"https://github.com/benediktschmitt/py-filelock","homepage":"https://filelock.readthedocs.org/","size":186,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12"},"html":{"href":"https://github.com/benediktschmitt/py-filelock/pull/12"},"issue":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/12"},"comments":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/benediktschmitt/py-filelock/statuses/5f658ee05a49a037d687c214df57829625580236"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":3,"changed_files":1}}