{"action":"closed","number":270,"pull_request":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270","id":65855673,"html_url":"https://github.com/RPi-Distro/python-gpiozero/pull/270","diff_url":"https://github.com/RPi-Distro/python-gpiozero/pull/270.diff","patch_url":"https://github.com/RPi-Distro/python-gpiozero/pull/270.patch","issue_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/270","number":270,"state":"closed","locked":false,"title":"Make tests work reliably on the Pi","user":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"body":"While the tests work well on a PC or Travis, the Pi (where I ought to be\r\nrunning them!) has some issues with the timing tests. Need to relax the\r\ntolerance of the \"assert_states_and_times\" method to 0.05 seconds\r\notherwise it periodically fails even on something reasonably quick like\r\na Pi 2 (less failures on a Pi 3 but still occasionally).\r\n\r\nAlso reduced default fps to 25; if the default timing occasionally fails\r\non a Pi 2 it's evidently too fast for a Pi 1 and shouldn't be the\r\ndefault; 25 also doesn't look any different to me on a pulsing LED.\r\n\r\nThere's also a bunch of miscellaneous fixes in here; last minute typos\r\nand chart re-gens for the 1.2 release.","created_at":"2016-04-08T22:24:26Z","updated_at":"2016-04-08T22:30:16Z","closed_at":"2016-04-08T22:30:16Z","merged_at":"2016-04-08T22:30:16Z","merge_commit_sha":"4e75d493554bfb082bc6c995e53b412d0793f4d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270/commits","review_comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270/comments","review_comment_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/270/comments","statuses_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/statuses/c2a9392ea529612833416ed9f9fb5767e0674501","head":{"label":"waveform80:tests-on-pi","ref":"tests-on-pi","sha":"c2a9392ea529612833416ed9f9fb5767e0674501","user":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"repo":{"id":42526658,"name":"gpio-zero","full_name":"waveform80/gpio-zero","owner":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waveform80/gpio-zero","description":"Abstraction for everyday GPIO components","fork":true,"url":"https://api.github.com/repos/waveform80/gpio-zero","forks_url":"https://api.github.com/repos/waveform80/gpio-zero/forks","keys_url":"https://api.github.com/repos/waveform80/gpio-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waveform80/gpio-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waveform80/gpio-zero/teams","hooks_url":"https://api.github.com/repos/waveform80/gpio-zero/hooks","issue_events_url":"https://api.github.com/repos/waveform80/gpio-zero/issues/events{/number}","events_url":"https://api.github.com/repos/waveform80/gpio-zero/events","assignees_url":"https://api.github.com/repos/waveform80/gpio-zero/assignees{/user}","branches_url":"https://api.github.com/repos/waveform80/gpio-zero/branches{/branch}","tags_url":"https://api.github.com/repos/waveform80/gpio-zero/tags","blobs_url":"https://api.github.com/repos/waveform80/gpio-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waveform80/gpio-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waveform80/gpio-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/waveform80/gpio-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waveform80/gpio-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/waveform80/gpio-zero/languages","stargazers_url":"https://api.github.com/repos/waveform80/gpio-zero/stargazers","contributors_url":"https://api.github.com/repos/waveform80/gpio-zero/contributors","subscribers_url":"https://api.github.com/repos/waveform80/gpio-zero/subscribers","subscription_url":"https://api.github.com/repos/waveform80/gpio-zero/subscription","commits_url":"https://api.github.com/repos/waveform80/gpio-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/waveform80/gpio-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/waveform80/gpio-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/waveform80/gpio-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/waveform80/gpio-zero/contents/{+path}","compare_url":"https://api.github.com/repos/waveform80/gpio-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waveform80/gpio-zero/merges","archive_url":"https://api.github.com/repos/waveform80/gpio-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waveform80/gpio-zero/downloads","issues_url":"https://api.github.com/repos/waveform80/gpio-zero/issues{/number}","pulls_url":"https://api.github.com/repos/waveform80/gpio-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/waveform80/gpio-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/waveform80/gpio-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waveform80/gpio-zero/labels{/name}","releases_url":"https://api.github.com/repos/waveform80/gpio-zero/releases{/id}","deployments_url":"https://api.github.com/repos/waveform80/gpio-zero/deployments","created_at":"2015-09-15T15:01:38Z","updated_at":"2016-01-31T00:02:47Z","pushed_at":"2016-04-08T22:11:22Z","git_url":"git://github.com/waveform80/gpio-zero.git","ssh_url":"git@github.com:waveform80/gpio-zero.git","clone_url":"https://github.com/waveform80/gpio-zero.git","svn_url":"https://github.com/waveform80/gpio-zero","homepage":"","size":4463,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"RPi-Distro:master","ref":"master","sha":"44422bd6c9ca1bc656226564100a4d06fc19f53c","user":{"login":"RPi-Distro","id":12276469,"avatar_url":"https://avatars.githubusercontent.com/u/12276469?v=3","gravatar_id":"","url":"https://api.github.com/users/RPi-Distro","html_url":"https://github.com/RPi-Distro","followers_url":"https://api.github.com/users/RPi-Distro/followers","following_url":"https://api.github.com/users/RPi-Distro/following{/other_user}","gists_url":"https://api.github.com/users/RPi-Distro/gists{/gist_id}","starred_url":"https://api.github.com/users/RPi-Distro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPi-Distro/subscriptions","organizations_url":"https://api.github.com/users/RPi-Distro/orgs","repos_url":"https://api.github.com/users/RPi-Distro/repos","events_url":"https://api.github.com/users/RPi-Distro/events{/privacy}","received_events_url":"https://api.github.com/users/RPi-Distro/received_events","type":"Organization","site_admin":false},"repo":{"id":42439862,"name":"python-gpiozero","full_name":"RPi-Distro/python-gpiozero","owner":{"login":"RPi-Distro","id":12276469,"avatar_url":"https://avatars.githubusercontent.com/u/12276469?v=3","gravatar_id":"","url":"https://api.github.com/users/RPi-Distro","html_url":"https://github.com/RPi-Distro","followers_url":"https://api.github.com/users/RPi-Distro/followers","following_url":"https://api.github.com/users/RPi-Distro/following{/other_user}","gists_url":"https://api.github.com/users/RPi-Distro/gists{/gist_id}","starred_url":"https://api.github.com/users/RPi-Distro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPi-Distro/subscriptions","organizations_url":"https://api.github.com/users/RPi-Distro/orgs","repos_url":"https://api.github.com/users/RPi-Distro/repos","events_url":"https://api.github.com/users/RPi-Distro/events{/privacy}","received_events_url":"https://api.github.com/users/RPi-Distro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RPi-Distro/python-gpiozero","description":"A simple interface to everyday GPIO components used with Raspberry Pi","fork":false,"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero","forks_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/forks","keys_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/teams","hooks_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/hooks","issue_events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/events{/number}","events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/events","assignees_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/assignees{/user}","branches_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/branches{/branch}","tags_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/tags","blobs_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/git/refs{/sha}","trees_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/statuses/{sha}","languages_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/languages","stargazers_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/stargazers","contributors_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/contributors","subscribers_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/subscribers","subscription_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/subscription","commits_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/commits{/sha}","git_commits_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/git/commits{/sha}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/comments{/number}","issue_comment_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/comments{/number}","contents_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/contents/{+path}","compare_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/merges","archive_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/downloads","issues_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues{/number}","pulls_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls{/number}","milestones_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/milestones{/number}","notifications_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/labels{/name}","releases_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/releases{/id}","deployments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/deployments","created_at":"2015-09-14T09:36:03Z","updated_at":"2016-04-05T21:20:30Z","pushed_at":"2016-04-08T22:30:16Z","git_url":"git://github.com/RPi-Distro/python-gpiozero.git","ssh_url":"git@github.com:RPi-Distro/python-gpiozero.git","clone_url":"https://github.com/RPi-Distro/python-gpiozero.git","svn_url":"https://github.com/RPi-Distro/python-gpiozero","homepage":"http://gpiozero.readthedocs.org/","size":4324,"stargazers_count":133,"watchers_count":133,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":31,"forks":43,"open_issues":31,"watchers":133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270"},"html":{"href":"https://github.com/RPi-Distro/python-gpiozero/pull/270"},"issue":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/270"},"comments":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/RPi-Distro/python-gpiozero/statuses/c2a9392ea529612833416ed9f9fb5767e0674501"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":846,"deletions":842,"changed_files":28}}