{"action":"created","comment":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/comments/80532483","id":80532483,"diff_hunk":"@@ -1263,12 +1263,18 @@ def test_key_import_errors(self):\n         with open(export_file, 'w') as fd:\n             fd.write('something not a key\\n')\n \n-        self.assert_raises(NotABorgKeyFile, lambda: self.cmd('key', 'import', self.repository_location, export_file))\n+        if self.EXE:\n+            self.cmd('key', 'import', self.repository_location, export_file, exit_code=2)\n+        else:\n+            self.assert_raises(NotABorgKeyFile, lambda: self.cmd('key', 'import', self.repository_location, export_file))\n \n         with open(export_file, 'w') as fd:\n             fd.write('BORG_KEY a0a0a0\\n')\n \n-        self.assert_raises(RepoIdMismatch, lambda: self.cmd('key', 'import', self.repository_location, export_file))\n+        if self.EXE:\n+            self.cmd('key', 'import', self.repository_location, export_file, exit_code=2)\n+        else:\n+            self.assert_raises(RepoIdMismatch, lambda: self.cmd('key', 'import', self.repository_location, export_file))","path":"borg/testsuite/archiver.py","position":null,"original_position":26,"commit_id":"15444b19d1507fabf46291f7b216d883e3743f1f","original_commit_id":"efbb6911f005c5bf0e3ab11e1c29fe490fd583de","user":{"login":"textshell","id":6579711,"avatar_url":"https://avatars.githubusercontent.com/u/6579711?v=3","gravatar_id":"","url":"https://api.github.com/users/textshell","html_url":"https://github.com/textshell","followers_url":"https://api.github.com/users/textshell/followers","following_url":"https://api.github.com/users/textshell/following{/other_user}","gists_url":"https://api.github.com/users/textshell/gists{/gist_id}","starred_url":"https://api.github.com/users/textshell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textshell/subscriptions","organizations_url":"https://api.github.com/users/textshell/orgs","repos_url":"https://api.github.com/users/textshell/repos","events_url":"https://api.github.com/users/textshell/events{/privacy}","received_events_url":"https://api.github.com/users/textshell/received_events","type":"User","site_admin":false},"body":"i think it‘s safe to say i hadn‘t. Fixed.","created_at":"2016-09-26T17:51:22Z","updated_at":"2016-09-26T17:51:22Z","html_url":"https://github.com/borgbackup/borg/pull/1646#discussion_r80532483","pull_request_url":"https://api.github.com/repos/borgbackup/borg/pulls/1646","_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments/80532483"},"html":{"href":"https://github.com/borgbackup/borg/pull/1646#discussion_r80532483"},"pull_request":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1646"}}},"pull_request":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/1646","id":86784649,"html_url":"https://github.com/borgbackup/borg/pull/1646","diff_url":"https://github.com/borgbackup/borg/pull/1646.diff","patch_url":"https://github.com/borgbackup/borg/pull/1646.patch","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1646","number":1646,"state":"open","locked":false,"title":"Fix key import tests","user":{"login":"textshell","id":6579711,"avatar_url":"https://avatars.githubusercontent.com/u/6579711?v=3","gravatar_id":"","url":"https://api.github.com/users/textshell","html_url":"https://github.com/textshell","followers_url":"https://api.github.com/users/textshell/followers","following_url":"https://api.github.com/users/textshell/following{/other_user}","gists_url":"https://api.github.com/users/textshell/gists{/gist_id}","starred_url":"https://api.github.com/users/textshell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textshell/subscriptions","organizations_url":"https://api.github.com/users/textshell/orgs","repos_url":"https://api.github.com/users/textshell/repos","events_url":"https://api.github.com/users/textshell/events{/privacy}","received_events_url":"https://api.github.com/users/textshell/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-26T17:29:37Z","updated_at":"2016-09-26T17:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1b61059186647b4f91d2bd1eb64eeb90e354fbc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/borgbackup/borg/pulls/1646/commits","review_comments_url":"https://api.github.com/repos/borgbackup/borg/pulls/1646/comments","review_comment_url":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1646/comments","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/15444b19d1507fabf46291f7b216d883e3743f1f","head":{"label":"textshell:fix/key-import-tests","ref":"fix/key-import-tests","sha":"15444b19d1507fabf46291f7b216d883e3743f1f","user":{"login":"textshell","id":6579711,"avatar_url":"https://avatars.githubusercontent.com/u/6579711?v=3","gravatar_id":"","url":"https://api.github.com/users/textshell","html_url":"https://github.com/textshell","followers_url":"https://api.github.com/users/textshell/followers","following_url":"https://api.github.com/users/textshell/following{/other_user}","gists_url":"https://api.github.com/users/textshell/gists{/gist_id}","starred_url":"https://api.github.com/users/textshell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textshell/subscriptions","organizations_url":"https://api.github.com/users/textshell/orgs","repos_url":"https://api.github.com/users/textshell/repos","events_url":"https://api.github.com/users/textshell/events{/privacy}","received_events_url":"https://api.github.com/users/textshell/received_events","type":"User","site_admin":false},"repo":{"id":64159641,"name":"borg","full_name":"textshell/borg","owner":{"login":"textshell","id":6579711,"avatar_url":"https://avatars.githubusercontent.com/u/6579711?v=3","gravatar_id":"","url":"https://api.github.com/users/textshell","html_url":"https://github.com/textshell","followers_url":"https://api.github.com/users/textshell/followers","following_url":"https://api.github.com/users/textshell/following{/other_user}","gists_url":"https://api.github.com/users/textshell/gists{/gist_id}","starred_url":"https://api.github.com/users/textshell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textshell/subscriptions","organizations_url":"https://api.github.com/users/textshell/orgs","repos_url":"https://api.github.com/users/textshell/repos","events_url":"https://api.github.com/users/textshell/events{/privacy}","received_events_url":"https://api.github.com/users/textshell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/textshell/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":true,"url":"https://api.github.com/repos/textshell/borg","forks_url":"https://api.github.com/repos/textshell/borg/forks","keys_url":"https://api.github.com/repos/textshell/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/textshell/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/textshell/borg/teams","hooks_url":"https://api.github.com/repos/textshell/borg/hooks","issue_events_url":"https://api.github.com/repos/textshell/borg/issues/events{/number}","events_url":"https://api.github.com/repos/textshell/borg/events","assignees_url":"https://api.github.com/repos/textshell/borg/assignees{/user}","branches_url":"https://api.github.com/repos/textshell/borg/branches{/branch}","tags_url":"https://api.github.com/repos/textshell/borg/tags","blobs_url":"https://api.github.com/repos/textshell/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/textshell/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/textshell/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/textshell/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/textshell/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/textshell/borg/languages","stargazers_url":"https://api.github.com/repos/textshell/borg/stargazers","contributors_url":"https://api.github.com/repos/textshell/borg/contributors","subscribers_url":"https://api.github.com/repos/textshell/borg/subscribers","subscription_url":"https://api.github.com/repos/textshell/borg/subscription","commits_url":"https://api.github.com/repos/textshell/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/textshell/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/textshell/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/textshell/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/textshell/borg/contents/{+path}","compare_url":"https://api.github.com/repos/textshell/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/textshell/borg/merges","archive_url":"https://api.github.com/repos/textshell/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/textshell/borg/downloads","issues_url":"https://api.github.com/repos/textshell/borg/issues{/number}","pulls_url":"https://api.github.com/repos/textshell/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/textshell/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/textshell/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/textshell/borg/labels{/name}","releases_url":"https://api.github.com/repos/textshell/borg/releases{/id}","deployments_url":"https://api.github.com/repos/textshell/borg/deployments","created_at":"2016-07-25T18:46:52Z","updated_at":"2016-07-25T18:46:53Z","pushed_at":"2016-09-26T17:47:58Z","git_url":"git://github.com/textshell/borg.git","ssh_url":"git@github.com:textshell/borg.git","clone_url":"https://github.com/textshell/borg.git","svn_url":"https://github.com/textshell/borg","homepage":"https://borgbackup.readthedocs.io/","size":5659,"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":"borgbackup:1.0-maint","ref":"1.0-maint","sha":"e9486ec34822be004ae894d5a66119042c74aa0c","user":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"repo":{"id":35517126,"name":"borg","full_name":"borgbackup/borg","owner":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/borgbackup/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":false,"url":"https://api.github.com/repos/borgbackup/borg","forks_url":"https://api.github.com/repos/borgbackup/borg/forks","keys_url":"https://api.github.com/repos/borgbackup/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/borgbackup/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/borgbackup/borg/teams","hooks_url":"https://api.github.com/repos/borgbackup/borg/hooks","issue_events_url":"https://api.github.com/repos/borgbackup/borg/issues/events{/number}","events_url":"https://api.github.com/repos/borgbackup/borg/events","assignees_url":"https://api.github.com/repos/borgbackup/borg/assignees{/user}","branches_url":"https://api.github.com/repos/borgbackup/borg/branches{/branch}","tags_url":"https://api.github.com/repos/borgbackup/borg/tags","blobs_url":"https://api.github.com/repos/borgbackup/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/borgbackup/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/borgbackup/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/borgbackup/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/borgbackup/borg/languages","stargazers_url":"https://api.github.com/repos/borgbackup/borg/stargazers","contributors_url":"https://api.github.com/repos/borgbackup/borg/contributors","subscribers_url":"https://api.github.com/repos/borgbackup/borg/subscribers","subscription_url":"https://api.github.com/repos/borgbackup/borg/subscription","commits_url":"https://api.github.com/repos/borgbackup/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/borgbackup/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/borgbackup/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/borgbackup/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/borgbackup/borg/contents/{+path}","compare_url":"https://api.github.com/repos/borgbackup/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/borgbackup/borg/merges","archive_url":"https://api.github.com/repos/borgbackup/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/borgbackup/borg/downloads","issues_url":"https://api.github.com/repos/borgbackup/borg/issues{/number}","pulls_url":"https://api.github.com/repos/borgbackup/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/borgbackup/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/borgbackup/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/borgbackup/borg/labels{/name}","releases_url":"https://api.github.com/repos/borgbackup/borg/releases{/id}","deployments_url":"https://api.github.com/repos/borgbackup/borg/deployments","created_at":"2015-05-12T23:10:47Z","updated_at":"2016-09-26T15:17:33Z","pushed_at":"2016-09-26T17:47:59Z","git_url":"git://github.com/borgbackup/borg.git","ssh_url":"git@github.com:borgbackup/borg.git","clone_url":"https://github.com/borgbackup/borg.git","svn_url":"https://github.com/borgbackup/borg","homepage":"https://borgbackup.readthedocs.io/","size":6666,"stargazers_count":1524,"watchers_count":1524,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":221,"forks":148,"open_issues":221,"watchers":1524,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1646"},"html":{"href":"https://github.com/borgbackup/borg/pull/1646"},"issue":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1646"},"comments":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1646/comments"},"review_comments":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1646/comments"},"review_comment":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1646/commits"},"statuses":{"href":"https://api.github.com/repos/borgbackup/borg/statuses/15444b19d1507fabf46291f7b216d883e3743f1f"}}}}
{"actor":{"display_login":"textshell"}}