{"action":"created","comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/76021731","id":76021731,"diff_hunk":"@@ -942,6 +941,7 @@ def _consider_importhook(self, args, entrypoint_name):\n         and find all the installed plugins to mark them for re-writing\n         by the importhook.\n         \"\"\"\n+        import pkg_resources\n         ns, unknown_args = self._parser.parse_known_and_unknown_args(args)\n         mode = ns.assertmode\n         if mode == 'rewrite':","path":"_pytest/config.py","position":15,"original_position":15,"commit_id":"d3f4b3d14ae385526e26b7c74e469584d769f486","original_commit_id":"d3f4b3d14ae385526e26b7c74e469584d769f486","user":{"login":"raquel-ucl","id":10402246,"avatar_url":"https://avatars.githubusercontent.com/u/10402246?v=3","gravatar_id":"","url":"https://api.github.com/users/raquel-ucl","html_url":"https://github.com/raquel-ucl","followers_url":"https://api.github.com/users/raquel-ucl/followers","following_url":"https://api.github.com/users/raquel-ucl/following{/other_user}","gists_url":"https://api.github.com/users/raquel-ucl/gists{/gist_id}","starred_url":"https://api.github.com/users/raquel-ucl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raquel-ucl/subscriptions","organizations_url":"https://api.github.com/users/raquel-ucl/orgs","repos_url":"https://api.github.com/users/raquel-ucl/repos","events_url":"https://api.github.com/users/raquel-ucl/events{/privacy}","received_events_url":"https://api.github.com/users/raquel-ucl/received_events","type":"User","site_admin":false},"body":"Sorry, I haven't been able to properly test this on my code yet, but you are right, the import needs to be moved to the else clause, this change won't be enough. I'll do that. I'd like to help with the test as well, but I think I will need your help :) \r\n\r\nAbout `assert=plain` I didn't know about it! I'll modify my code to use it. Thanks!\r\n\r\n","created_at":"2016-08-24T09:12:19Z","updated_at":"2016-08-24T09:12:19Z","html_url":"https://github.com/pytest-dev/pytest/pull/1854#discussion_r76021731","pull_request_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854","_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/76021731"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1854#discussion_r76021731"},"pull_request":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854"}}},"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854","id":82391258,"html_url":"https://github.com/pytest-dev/pytest/pull/1854","diff_url":"https://github.com/pytest-dev/pytest/pull/1854.diff","patch_url":"https://github.com/pytest-dev/pytest/pull/1854.patch","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1854","number":1854,"state":"open","locked":false,"title":"Pkg resources bugfix","user":{"login":"raquel-ucl","id":10402246,"avatar_url":"https://avatars.githubusercontent.com/u/10402246?v=3","gravatar_id":"","url":"https://api.github.com/users/raquel-ucl","html_url":"https://github.com/raquel-ucl","followers_url":"https://api.github.com/users/raquel-ucl/followers","following_url":"https://api.github.com/users/raquel-ucl/following{/other_user}","gists_url":"https://api.github.com/users/raquel-ucl/gists{/gist_id}","starred_url":"https://api.github.com/users/raquel-ucl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raquel-ucl/subscriptions","organizations_url":"https://api.github.com/users/raquel-ucl/orgs","repos_url":"https://api.github.com/users/raquel-ucl/repos","events_url":"https://api.github.com/users/raquel-ucl/events{/privacy}","received_events_url":"https://api.github.com/users/raquel-ucl/received_events","type":"User","site_admin":false},"body":"Related to #1853. \r\n\r\n\r\n","created_at":"2016-08-23T15:50:27Z","updated_at":"2016-08-24T09:12:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c8d11eface858c5ca64c78a66518ac2610adadb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854/comments","review_comment_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1854/comments","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/d3f4b3d14ae385526e26b7c74e469584d769f486","head":{"label":"raquel-ucl:pkg_resources_bugfix","ref":"pkg_resources_bugfix","sha":"d3f4b3d14ae385526e26b7c74e469584d769f486","user":{"login":"raquel-ucl","id":10402246,"avatar_url":"https://avatars.githubusercontent.com/u/10402246?v=3","gravatar_id":"","url":"https://api.github.com/users/raquel-ucl","html_url":"https://github.com/raquel-ucl","followers_url":"https://api.github.com/users/raquel-ucl/followers","following_url":"https://api.github.com/users/raquel-ucl/following{/other_user}","gists_url":"https://api.github.com/users/raquel-ucl/gists{/gist_id}","starred_url":"https://api.github.com/users/raquel-ucl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raquel-ucl/subscriptions","organizations_url":"https://api.github.com/users/raquel-ucl/orgs","repos_url":"https://api.github.com/users/raquel-ucl/repos","events_url":"https://api.github.com/users/raquel-ucl/events{/privacy}","received_events_url":"https://api.github.com/users/raquel-ucl/received_events","type":"User","site_admin":false},"repo":{"id":66374947,"name":"pytest","full_name":"raquel-ucl/pytest","owner":{"login":"raquel-ucl","id":10402246,"avatar_url":"https://avatars.githubusercontent.com/u/10402246?v=3","gravatar_id":"","url":"https://api.github.com/users/raquel-ucl","html_url":"https://github.com/raquel-ucl","followers_url":"https://api.github.com/users/raquel-ucl/followers","following_url":"https://api.github.com/users/raquel-ucl/following{/other_user}","gists_url":"https://api.github.com/users/raquel-ucl/gists{/gist_id}","starred_url":"https://api.github.com/users/raquel-ucl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raquel-ucl/subscriptions","organizations_url":"https://api.github.com/users/raquel-ucl/orgs","repos_url":"https://api.github.com/users/raquel-ucl/repos","events_url":"https://api.github.com/users/raquel-ucl/events{/privacy}","received_events_url":"https://api.github.com/users/raquel-ucl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raquel-ucl/pytest","description":"The pytest framework makes it easy to write small tests, yet scales to support complex functional testing","fork":true,"url":"https://api.github.com/repos/raquel-ucl/pytest","forks_url":"https://api.github.com/repos/raquel-ucl/pytest/forks","keys_url":"https://api.github.com/repos/raquel-ucl/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raquel-ucl/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raquel-ucl/pytest/teams","hooks_url":"https://api.github.com/repos/raquel-ucl/pytest/hooks","issue_events_url":"https://api.github.com/repos/raquel-ucl/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/raquel-ucl/pytest/events","assignees_url":"https://api.github.com/repos/raquel-ucl/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/raquel-ucl/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/raquel-ucl/pytest/tags","blobs_url":"https://api.github.com/repos/raquel-ucl/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raquel-ucl/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raquel-ucl/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/raquel-ucl/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raquel-ucl/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/raquel-ucl/pytest/languages","stargazers_url":"https://api.github.com/repos/raquel-ucl/pytest/stargazers","contributors_url":"https://api.github.com/repos/raquel-ucl/pytest/contributors","subscribers_url":"https://api.github.com/repos/raquel-ucl/pytest/subscribers","subscription_url":"https://api.github.com/repos/raquel-ucl/pytest/subscription","commits_url":"https://api.github.com/repos/raquel-ucl/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/raquel-ucl/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/raquel-ucl/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/raquel-ucl/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/raquel-ucl/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/raquel-ucl/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raquel-ucl/pytest/merges","archive_url":"https://api.github.com/repos/raquel-ucl/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raquel-ucl/pytest/downloads","issues_url":"https://api.github.com/repos/raquel-ucl/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/raquel-ucl/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/raquel-ucl/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/raquel-ucl/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raquel-ucl/pytest/labels{/name}","releases_url":"https://api.github.com/repos/raquel-ucl/pytest/releases{/id}","deployments_url":"https://api.github.com/repos/raquel-ucl/pytest/deployments","created_at":"2016-08-23T14:33:56Z","updated_at":"2016-08-23T14:33:57Z","pushed_at":"2016-08-23T15:50:13Z","git_url":"git://github.com/raquel-ucl/pytest.git","ssh_url":"git@github.com:raquel-ucl/pytest.git","clone_url":"https://github.com/raquel-ucl/pytest.git","svn_url":"https://github.com/raquel-ucl/pytest","homepage":"http://pytest.org/","size":8913,"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":"pytest-dev:master","ref":"master","sha":"847067fb02804f967e07746085d574dff7495f18","user":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":37489525,"name":"pytest","full_name":"pytest-dev/pytest","owner":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pytest-dev/pytest","description":"The pytest framework makes it easy to write small tests, yet scales to support complex functional testing","fork":false,"url":"https://api.github.com/repos/pytest-dev/pytest","forks_url":"https://api.github.com/repos/pytest-dev/pytest/forks","keys_url":"https://api.github.com/repos/pytest-dev/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytest-dev/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytest-dev/pytest/teams","hooks_url":"https://api.github.com/repos/pytest-dev/pytest/hooks","issue_events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/pytest-dev/pytest/events","assignees_url":"https://api.github.com/repos/pytest-dev/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/pytest-dev/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/pytest-dev/pytest/tags","blobs_url":"https://api.github.com/repos/pytest-dev/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytest-dev/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytest-dev/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytest-dev/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/pytest-dev/pytest/languages","stargazers_url":"https://api.github.com/repos/pytest-dev/pytest/stargazers","contributors_url":"https://api.github.com/repos/pytest-dev/pytest/contributors","subscribers_url":"https://api.github.com/repos/pytest-dev/pytest/subscribers","subscription_url":"https://api.github.com/repos/pytest-dev/pytest/subscription","commits_url":"https://api.github.com/repos/pytest-dev/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytest-dev/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytest-dev/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/pytest-dev/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytest-dev/pytest/merges","archive_url":"https://api.github.com/repos/pytest-dev/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytest-dev/pytest/downloads","issues_url":"https://api.github.com/repos/pytest-dev/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/pytest-dev/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/pytest-dev/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/pytest-dev/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytest-dev/pytest/labels{/name}","releases_url":"https://api.github.com/repos/pytest-dev/pytest/releases{/id}","deployments_url":"https://api.github.com/repos/pytest-dev/pytest/deployments","created_at":"2015-06-15T20:28:27Z","updated_at":"2016-08-23T14:31:33Z","pushed_at":"2016-08-24T04:43:57Z","git_url":"git://github.com/pytest-dev/pytest.git","ssh_url":"git@github.com:pytest-dev/pytest.git","clone_url":"https://github.com/pytest-dev/pytest.git","svn_url":"https://github.com/pytest-dev/pytest","homepage":"http://pytest.org/","size":10852,"stargazers_count":844,"watchers_count":844,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":233,"mirror_url":null,"open_issues_count":279,"forks":233,"open_issues":279,"watchers":844,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1854"},"issue":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1854"},"comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1854/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854/comments"},"review_comment":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1854/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/pytest/statuses/d3f4b3d14ae385526e26b7c74e469584d769f486"}}}}
{"actor":{"display_login":"raquel-ucl"}}