{"action":"opened","number":203,"pull_request":{"url":"https://api.github.com/repos/pytest-dev/py/pulls/203","id":227705930,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NzA1OTMw","html_url":"https://github.com/pytest-dev/py/pull/203","diff_url":"https://github.com/pytest-dev/py/pull/203.diff","patch_url":"https://github.com/pytest-dev/py/pull/203.patch","issue_url":"https://api.github.com/repos/pytest-dev/py/issues/203","number":203,"state":"open","locked":false,"title":"Use importlib to avoid module name clashes for pytest","user":{"login":"neumond","id":3260024,"node_id":"MDQ6VXNlcjMyNjAwMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3260024?v=4","gravatar_id":"","url":"https://api.github.com/users/neumond","html_url":"https://github.com/neumond","followers_url":"https://api.github.com/users/neumond/followers","following_url":"https://api.github.com/users/neumond/following{/other_user}","gists_url":"https://api.github.com/users/neumond/gists{/gist_id}","starred_url":"https://api.github.com/users/neumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumond/subscriptions","organizations_url":"https://api.github.com/users/neumond/orgs","repos_url":"https://api.github.com/users/neumond/repos","events_url":"https://api.github.com/users/neumond/events{/privacy}","received_events_url":"https://api.github.com/users/neumond/received_events","type":"User","site_admin":false},"body":"This allows simple modification for pytest `--import-mode=importlib` to completely avoid module naming issue if you have fresh python (>=3.5). This skips modifying sys.path, guessing package names, attempting to correctly import `__init__.py` and directories. This is more than enough for usual pytest workflow, e.g. if you have unimportable `tests` directory with files like `test_something.py`.","created_at":"2018-11-01T17:59:01Z","updated_at":"2018-11-01T17:59:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytest-dev/py/pulls/203/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/py/pulls/203/comments","review_comment_url":"https://api.github.com/repos/pytest-dev/py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytest-dev/py/issues/203/comments","statuses_url":"https://api.github.com/repos/pytest-dev/py/statuses/055bcb1aa8bf9b0b6c7edfb496dcd9989cf1886d","head":{"label":"neumond:master","ref":"master","sha":"055bcb1aa8bf9b0b6c7edfb496dcd9989cf1886d","user":{"login":"neumond","id":3260024,"node_id":"MDQ6VXNlcjMyNjAwMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3260024?v=4","gravatar_id":"","url":"https://api.github.com/users/neumond","html_url":"https://github.com/neumond","followers_url":"https://api.github.com/users/neumond/followers","following_url":"https://api.github.com/users/neumond/following{/other_user}","gists_url":"https://api.github.com/users/neumond/gists{/gist_id}","starred_url":"https://api.github.com/users/neumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumond/subscriptions","organizations_url":"https://api.github.com/users/neumond/orgs","repos_url":"https://api.github.com/users/neumond/repos","events_url":"https://api.github.com/users/neumond/events{/privacy}","received_events_url":"https://api.github.com/users/neumond/received_events","type":"User","site_admin":false},"repo":{"id":155739016,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU3MzkwMTY=","name":"py","full_name":"neumond/py","private":false,"owner":{"login":"neumond","id":3260024,"node_id":"MDQ6VXNlcjMyNjAwMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3260024?v=4","gravatar_id":"","url":"https://api.github.com/users/neumond","html_url":"https://github.com/neumond","followers_url":"https://api.github.com/users/neumond/followers","following_url":"https://api.github.com/users/neumond/following{/other_user}","gists_url":"https://api.github.com/users/neumond/gists{/gist_id}","starred_url":"https://api.github.com/users/neumond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumond/subscriptions","organizations_url":"https://api.github.com/users/neumond/orgs","repos_url":"https://api.github.com/users/neumond/repos","events_url":"https://api.github.com/users/neumond/events{/privacy}","received_events_url":"https://api.github.com/users/neumond/received_events","type":"User","site_admin":false},"html_url":"https://github.com/neumond/py","description":"Python development support library (note: maintenance only)","fork":true,"url":"https://api.github.com/repos/neumond/py","forks_url":"https://api.github.com/repos/neumond/py/forks","keys_url":"https://api.github.com/repos/neumond/py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neumond/py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neumond/py/teams","hooks_url":"https://api.github.com/repos/neumond/py/hooks","issue_events_url":"https://api.github.com/repos/neumond/py/issues/events{/number}","events_url":"https://api.github.com/repos/neumond/py/events","assignees_url":"https://api.github.com/repos/neumond/py/assignees{/user}","branches_url":"https://api.github.com/repos/neumond/py/branches{/branch}","tags_url":"https://api.github.com/repos/neumond/py/tags","blobs_url":"https://api.github.com/repos/neumond/py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neumond/py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neumond/py/git/refs{/sha}","trees_url":"https://api.github.com/repos/neumond/py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neumond/py/statuses/{sha}","languages_url":"https://api.github.com/repos/neumond/py/languages","stargazers_url":"https://api.github.com/repos/neumond/py/stargazers","contributors_url":"https://api.github.com/repos/neumond/py/contributors","subscribers_url":"https://api.github.com/repos/neumond/py/subscribers","subscription_url":"https://api.github.com/repos/neumond/py/subscription","commits_url":"https://api.github.com/repos/neumond/py/commits{/sha}","git_commits_url":"https://api.github.com/repos/neumond/py/git/commits{/sha}","comments_url":"https://api.github.com/repos/neumond/py/comments{/number}","issue_comment_url":"https://api.github.com/repos/neumond/py/issues/comments{/number}","contents_url":"https://api.github.com/repos/neumond/py/contents/{+path}","compare_url":"https://api.github.com/repos/neumond/py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neumond/py/merges","archive_url":"https://api.github.com/repos/neumond/py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neumond/py/downloads","issues_url":"https://api.github.com/repos/neumond/py/issues{/number}","pulls_url":"https://api.github.com/repos/neumond/py/pulls{/number}","milestones_url":"https://api.github.com/repos/neumond/py/milestones{/number}","notifications_url":"https://api.github.com/repos/neumond/py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neumond/py/labels{/name}","releases_url":"https://api.github.com/repos/neumond/py/releases{/id}","deployments_url":"https://api.github.com/repos/neumond/py/deployments","created_at":"2018-11-01T15:50:35Z","updated_at":"2018-11-01T17:52:04Z","pushed_at":"2018-11-01T17:52:02Z","git_url":"git://github.com/neumond/py.git","ssh_url":"git@github.com:neumond/py.git","clone_url":"https://github.com/neumond/py.git","svn_url":"https://github.com/neumond/py","homepage":"","size":21952,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytest-dev:master","ref":"master","sha":"0b562ce18274409d4be6c40cc70bd4c96c32387d","user":{"login":"pytest-dev","id":8897583,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4OTc1ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/8897583?v=4","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":68434790,"node_id":"MDEwOlJlcG9zaXRvcnk2ODQzNDc5MA==","name":"py","full_name":"pytest-dev/py","private":false,"owner":{"login":"pytest-dev","id":8897583,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4OTc1ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/8897583?v=4","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},"html_url":"https://github.com/pytest-dev/py","description":"Python development support library (note: maintenance only)","fork":false,"url":"https://api.github.com/repos/pytest-dev/py","forks_url":"https://api.github.com/repos/pytest-dev/py/forks","keys_url":"https://api.github.com/repos/pytest-dev/py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytest-dev/py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytest-dev/py/teams","hooks_url":"https://api.github.com/repos/pytest-dev/py/hooks","issue_events_url":"https://api.github.com/repos/pytest-dev/py/issues/events{/number}","events_url":"https://api.github.com/repos/pytest-dev/py/events","assignees_url":"https://api.github.com/repos/pytest-dev/py/assignees{/user}","branches_url":"https://api.github.com/repos/pytest-dev/py/branches{/branch}","tags_url":"https://api.github.com/repos/pytest-dev/py/tags","blobs_url":"https://api.github.com/repos/pytest-dev/py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytest-dev/py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytest-dev/py/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytest-dev/py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytest-dev/py/statuses/{sha}","languages_url":"https://api.github.com/repos/pytest-dev/py/languages","stargazers_url":"https://api.github.com/repos/pytest-dev/py/stargazers","contributors_url":"https://api.github.com/repos/pytest-dev/py/contributors","subscribers_url":"https://api.github.com/repos/pytest-dev/py/subscribers","subscription_url":"https://api.github.com/repos/pytest-dev/py/subscription","commits_url":"https://api.github.com/repos/pytest-dev/py/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytest-dev/py/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytest-dev/py/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytest-dev/py/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytest-dev/py/contents/{+path}","compare_url":"https://api.github.com/repos/pytest-dev/py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytest-dev/py/merges","archive_url":"https://api.github.com/repos/pytest-dev/py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytest-dev/py/downloads","issues_url":"https://api.github.com/repos/pytest-dev/py/issues{/number}","pulls_url":"https://api.github.com/repos/pytest-dev/py/pulls{/number}","milestones_url":"https://api.github.com/repos/pytest-dev/py/milestones{/number}","notifications_url":"https://api.github.com/repos/pytest-dev/py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytest-dev/py/labels{/name}","releases_url":"https://api.github.com/repos/pytest-dev/py/releases{/id}","deployments_url":"https://api.github.com/repos/pytest-dev/py/deployments","created_at":"2016-09-17T05:55:51Z","updated_at":"2018-10-15T14:39:33Z","pushed_at":"2018-10-12T10:53:20Z","git_url":"git://github.com/pytest-dev/py.git","ssh_url":"git@github.com:pytest-dev/py.git","clone_url":"https://github.com/pytest-dev/py.git","svn_url":"https://github.com/pytest-dev/py","homepage":"","size":21929,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":37,"open_issues":25,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/py/pulls/203"},"html":{"href":"https://github.com/pytest-dev/py/pull/203"},"issue":{"href":"https://api.github.com/repos/pytest-dev/py/issues/203"},"comments":{"href":"https://api.github.com/repos/pytest-dev/py/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/py/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/pytest-dev/py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytest-dev/py/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/py/statuses/055bcb1aa8bf9b0b6c7edfb496dcd9989cf1886d"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":63,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"neumond"}}