{"action":"created","comment":{"url":"https://api.github.com/repos/pimutils/khal/pulls/comments/101178468","pull_request_review_id":21899497,"id":101178468,"diff_hunk":"@@ -48,3 +49,30 @@ def undo():\n             monkeypatch.setattr('click.echo', old_echo)\n \n     return Result\n+\n+\n+@pytest.fixture\n+def sleep_time(tmpdir):\n+    \"\"\"\n+    Returns how long we need to sleep for the filesystem's mtime precision to\n+    pick up differences.\n+\n+    This keeps test fast on systems with high precisions, but makes them pass\n+    on those that don't.\n+    \"\"\"\n+    tmpfile = tmpdir.join('touch_me')\n+\n+    def touch_and_mtime():\n+        with tmpfile.open('w') as f:\n+            f.write('hi')\n+        with tmpfile.open() as f:","path":"tests/conftest.py","position":26,"original_position":26,"commit_id":"36cee140c58224ba22e6f3693fd0fcdc147ed1e5","original_commit_id":"36cee140c58224ba22e6f3693fd0fcdc147ed1e5","user":{"login":"hobarrera","id":730811,"avatar_url":"https://avatars.githubusercontent.com/u/730811?v=3","gravatar_id":"","url":"https://api.github.com/users/hobarrera","html_url":"https://github.com/hobarrera","followers_url":"https://api.github.com/users/hobarrera/followers","following_url":"https://api.github.com/users/hobarrera/following{/other_user}","gists_url":"https://api.github.com/users/hobarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/hobarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobarrera/subscriptions","organizations_url":"https://api.github.com/users/hobarrera/orgs","repos_url":"https://api.github.com/users/hobarrera/repos","events_url":"https://api.github.com/users/hobarrera/events{/privacy}","received_events_url":"https://api.github.com/users/hobarrera/received_events","type":"User","site_admin":false},"body":"Yeah, no idea why I used `fstat`.","created_at":"2017-02-15T00:24:32Z","updated_at":"2017-02-15T00:24:32Z","html_url":"https://github.com/pimutils/khal/pull/575#discussion_r101178468","pull_request_url":"https://api.github.com/repos/pimutils/khal/pulls/575","_links":{"self":{"href":"https://api.github.com/repos/pimutils/khal/pulls/comments/101178468"},"html":{"href":"https://github.com/pimutils/khal/pull/575#discussion_r101178468"},"pull_request":{"href":"https://api.github.com/repos/pimutils/khal/pulls/575"}}},"pull_request":{"url":"https://api.github.com/repos/pimutils/khal/pulls/575","id":106167515,"html_url":"https://github.com/pimutils/khal/pull/575","diff_url":"https://github.com/pimutils/khal/pull/575.diff","patch_url":"https://github.com/pimutils/khal/pull/575.patch","issue_url":"https://api.github.com/repos/pimutils/khal/issues/575","number":575,"state":"open","locked":false,"title":"Fix tests on systems with second-precision mtime","user":{"login":"hobarrera","id":730811,"avatar_url":"https://avatars.githubusercontent.com/u/730811?v=3","gravatar_id":"","url":"https://api.github.com/users/hobarrera","html_url":"https://github.com/hobarrera","followers_url":"https://api.github.com/users/hobarrera/followers","following_url":"https://api.github.com/users/hobarrera/following{/other_user}","gists_url":"https://api.github.com/users/hobarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/hobarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobarrera/subscriptions","organizations_url":"https://api.github.com/users/hobarrera/orgs","repos_url":"https://api.github.com/users/hobarrera/repos","events_url":"https://api.github.com/users/hobarrera/events{/privacy}","received_events_url":"https://api.github.com/users/hobarrera/received_events","type":"User","site_admin":false},"body":"Some systems have an mtime with precision in seconds, so tests what expect changes in mtime fail.\r\n\r\nUpdate these tests to sleep longer on those systems (but still sleep 0.01son faster systems).\r\n\r\nCloses #574 \r\n","created_at":"2017-02-14T18:48:01Z","updated_at":"2017-02-15T00:24:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"216f6de52822eadcc355a1d18b412f0c49cf9031","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pimutils/khal/pulls/575/commits","review_comments_url":"https://api.github.com/repos/pimutils/khal/pulls/575/comments","review_comment_url":"https://api.github.com/repos/pimutils/khal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pimutils/khal/issues/575/comments","statuses_url":"https://api.github.com/repos/pimutils/khal/statuses/36cee140c58224ba22e6f3693fd0fcdc147ed1e5","head":{"label":"hobarrera:sleep-tight-when-nobodys-watching","ref":"sleep-tight-when-nobodys-watching","sha":"36cee140c58224ba22e6f3693fd0fcdc147ed1e5","user":{"login":"hobarrera","id":730811,"avatar_url":"https://avatars.githubusercontent.com/u/730811?v=3","gravatar_id":"","url":"https://api.github.com/users/hobarrera","html_url":"https://github.com/hobarrera","followers_url":"https://api.github.com/users/hobarrera/followers","following_url":"https://api.github.com/users/hobarrera/following{/other_user}","gists_url":"https://api.github.com/users/hobarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/hobarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobarrera/subscriptions","organizations_url":"https://api.github.com/users/hobarrera/orgs","repos_url":"https://api.github.com/users/hobarrera/repos","events_url":"https://api.github.com/users/hobarrera/events{/privacy}","received_events_url":"https://api.github.com/users/hobarrera/received_events","type":"User","site_admin":false},"repo":{"id":32148922,"name":"khal","full_name":"hobarrera/khal","owner":{"login":"hobarrera","id":730811,"avatar_url":"https://avatars.githubusercontent.com/u/730811?v=3","gravatar_id":"","url":"https://api.github.com/users/hobarrera","html_url":"https://github.com/hobarrera","followers_url":"https://api.github.com/users/hobarrera/followers","following_url":"https://api.github.com/users/hobarrera/following{/other_user}","gists_url":"https://api.github.com/users/hobarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/hobarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobarrera/subscriptions","organizations_url":"https://api.github.com/users/hobarrera/orgs","repos_url":"https://api.github.com/users/hobarrera/repos","events_url":"https://api.github.com/users/hobarrera/events{/privacy}","received_events_url":"https://api.github.com/users/hobarrera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hobarrera/khal","description":"CLI calendar application","fork":true,"url":"https://api.github.com/repos/hobarrera/khal","forks_url":"https://api.github.com/repos/hobarrera/khal/forks","keys_url":"https://api.github.com/repos/hobarrera/khal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hobarrera/khal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hobarrera/khal/teams","hooks_url":"https://api.github.com/repos/hobarrera/khal/hooks","issue_events_url":"https://api.github.com/repos/hobarrera/khal/issues/events{/number}","events_url":"https://api.github.com/repos/hobarrera/khal/events","assignees_url":"https://api.github.com/repos/hobarrera/khal/assignees{/user}","branches_url":"https://api.github.com/repos/hobarrera/khal/branches{/branch}","tags_url":"https://api.github.com/repos/hobarrera/khal/tags","blobs_url":"https://api.github.com/repos/hobarrera/khal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hobarrera/khal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hobarrera/khal/git/refs{/sha}","trees_url":"https://api.github.com/repos/hobarrera/khal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hobarrera/khal/statuses/{sha}","languages_url":"https://api.github.com/repos/hobarrera/khal/languages","stargazers_url":"https://api.github.com/repos/hobarrera/khal/stargazers","contributors_url":"https://api.github.com/repos/hobarrera/khal/contributors","subscribers_url":"https://api.github.com/repos/hobarrera/khal/subscribers","subscription_url":"https://api.github.com/repos/hobarrera/khal/subscription","commits_url":"https://api.github.com/repos/hobarrera/khal/commits{/sha}","git_commits_url":"https://api.github.com/repos/hobarrera/khal/git/commits{/sha}","comments_url":"https://api.github.com/repos/hobarrera/khal/comments{/number}","issue_comment_url":"https://api.github.com/repos/hobarrera/khal/issues/comments{/number}","contents_url":"https://api.github.com/repos/hobarrera/khal/contents/{+path}","compare_url":"https://api.github.com/repos/hobarrera/khal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hobarrera/khal/merges","archive_url":"https://api.github.com/repos/hobarrera/khal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hobarrera/khal/downloads","issues_url":"https://api.github.com/repos/hobarrera/khal/issues{/number}","pulls_url":"https://api.github.com/repos/hobarrera/khal/pulls{/number}","milestones_url":"https://api.github.com/repos/hobarrera/khal/milestones{/number}","notifications_url":"https://api.github.com/repos/hobarrera/khal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hobarrera/khal/labels{/name}","releases_url":"https://api.github.com/repos/hobarrera/khal/releases{/id}","deployments_url":"https://api.github.com/repos/hobarrera/khal/deployments","created_at":"2015-03-13T10:06:14Z","updated_at":"2016-02-24T22:39:47Z","pushed_at":"2017-02-14T18:53:47Z","git_url":"git://github.com/hobarrera/khal.git","ssh_url":"git@github.com:hobarrera/khal.git","clone_url":"https://github.com/hobarrera/khal.git","svn_url":"https://github.com/hobarrera/khal","homepage":"http://lostpackets.de/khal/","size":2746,"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":"pimutils:master","ref":"master","sha":"3e69310ab42d17b56c29066ce6365cffce61e7a9","user":{"login":"pimutils","id":17852924,"avatar_url":"https://avatars.githubusercontent.com/u/17852924?v=3","gravatar_id":"","url":"https://api.github.com/users/pimutils","html_url":"https://github.com/pimutils","followers_url":"https://api.github.com/users/pimutils/followers","following_url":"https://api.github.com/users/pimutils/following{/other_user}","gists_url":"https://api.github.com/users/pimutils/gists{/gist_id}","starred_url":"https://api.github.com/users/pimutils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pimutils/subscriptions","organizations_url":"https://api.github.com/users/pimutils/orgs","repos_url":"https://api.github.com/users/pimutils/repos","events_url":"https://api.github.com/users/pimutils/events{/privacy}","received_events_url":"https://api.github.com/users/pimutils/received_events","type":"Organization","site_admin":false},"repo":{"id":12357974,"name":"khal","full_name":"pimutils/khal","owner":{"login":"pimutils","id":17852924,"avatar_url":"https://avatars.githubusercontent.com/u/17852924?v=3","gravatar_id":"","url":"https://api.github.com/users/pimutils","html_url":"https://github.com/pimutils","followers_url":"https://api.github.com/users/pimutils/followers","following_url":"https://api.github.com/users/pimutils/following{/other_user}","gists_url":"https://api.github.com/users/pimutils/gists{/gist_id}","starred_url":"https://api.github.com/users/pimutils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pimutils/subscriptions","organizations_url":"https://api.github.com/users/pimutils/orgs","repos_url":"https://api.github.com/users/pimutils/repos","events_url":"https://api.github.com/users/pimutils/events{/privacy}","received_events_url":"https://api.github.com/users/pimutils/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pimutils/khal","description":":calendar: CLI calendar application","fork":false,"url":"https://api.github.com/repos/pimutils/khal","forks_url":"https://api.github.com/repos/pimutils/khal/forks","keys_url":"https://api.github.com/repos/pimutils/khal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pimutils/khal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pimutils/khal/teams","hooks_url":"https://api.github.com/repos/pimutils/khal/hooks","issue_events_url":"https://api.github.com/repos/pimutils/khal/issues/events{/number}","events_url":"https://api.github.com/repos/pimutils/khal/events","assignees_url":"https://api.github.com/repos/pimutils/khal/assignees{/user}","branches_url":"https://api.github.com/repos/pimutils/khal/branches{/branch}","tags_url":"https://api.github.com/repos/pimutils/khal/tags","blobs_url":"https://api.github.com/repos/pimutils/khal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pimutils/khal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pimutils/khal/git/refs{/sha}","trees_url":"https://api.github.com/repos/pimutils/khal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pimutils/khal/statuses/{sha}","languages_url":"https://api.github.com/repos/pimutils/khal/languages","stargazers_url":"https://api.github.com/repos/pimutils/khal/stargazers","contributors_url":"https://api.github.com/repos/pimutils/khal/contributors","subscribers_url":"https://api.github.com/repos/pimutils/khal/subscribers","subscription_url":"https://api.github.com/repos/pimutils/khal/subscription","commits_url":"https://api.github.com/repos/pimutils/khal/commits{/sha}","git_commits_url":"https://api.github.com/repos/pimutils/khal/git/commits{/sha}","comments_url":"https://api.github.com/repos/pimutils/khal/comments{/number}","issue_comment_url":"https://api.github.com/repos/pimutils/khal/issues/comments{/number}","contents_url":"https://api.github.com/repos/pimutils/khal/contents/{+path}","compare_url":"https://api.github.com/repos/pimutils/khal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pimutils/khal/merges","archive_url":"https://api.github.com/repos/pimutils/khal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pimutils/khal/downloads","issues_url":"https://api.github.com/repos/pimutils/khal/issues{/number}","pulls_url":"https://api.github.com/repos/pimutils/khal/pulls{/number}","milestones_url":"https://api.github.com/repos/pimutils/khal/milestones{/number}","notifications_url":"https://api.github.com/repos/pimutils/khal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pimutils/khal/labels{/name}","releases_url":"https://api.github.com/repos/pimutils/khal/releases{/id}","deployments_url":"https://api.github.com/repos/pimutils/khal/deployments","created_at":"2013-08-25T11:22:27Z","updated_at":"2017-02-14T00:51:30Z","pushed_at":"2017-02-14T18:53:48Z","git_url":"git://github.com/pimutils/khal.git","ssh_url":"git@github.com:pimutils/khal.git","clone_url":"https://github.com/pimutils/khal.git","svn_url":"https://github.com/pimutils/khal","homepage":"https://lostpackets.de/khal/","size":2802,"stargazers_count":684,"watchers_count":684,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":71,"forks":69,"open_issues":71,"watchers":684,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pimutils/khal/pulls/575"},"html":{"href":"https://github.com/pimutils/khal/pull/575"},"issue":{"href":"https://api.github.com/repos/pimutils/khal/issues/575"},"comments":{"href":"https://api.github.com/repos/pimutils/khal/issues/575/comments"},"review_comments":{"href":"https://api.github.com/repos/pimutils/khal/pulls/575/comments"},"review_comment":{"href":"https://api.github.com/repos/pimutils/khal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pimutils/khal/pulls/575/commits"},"statuses":{"href":"https://api.github.com/repos/pimutils/khal/statuses/36cee140c58224ba22e6f3693fd0fcdc147ed1e5"}}}}
{"actor":{"display_login":"hobarrera"}}