{"action":"created","comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/40812528","id":40812528,"diff_hunk":"@@ -49,7 +49,10 @@ def _has_positional_arg(func):\n \n \n def filter_traceback(entry):\n-    return entry.path != cutdir1 and not entry.path.relto(cutdir2)\n+    # ensure entry.path is always a py.path.local object\n+    # see https://bitbucket.org/pytest-dev/py/issues/71\n+    path = py.path.local(entry.path)","path":"_pytest/python.py","position":7,"original_position":7,"commit_id":"11f100813e4aa40d5c89f904aea6e2ac38c4607e","original_commit_id":"11f100813e4aa40d5c89f904aea6e2ac38c4607e","user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"body":"OK, I will implement this change later then.\r\n\r\nThat aside, how about adding a `entry.frame.code.is_generated()` to abstract this away from clients and not having them hard-coding the `\"<...>\"`-detection logic? ","created_at":"2015-09-30T15:56:15Z","updated_at":"2015-09-30T15:56:15Z","html_url":"https://github.com/pytest-dev/pytest/pull/1093#discussion_r40812528","pull_request_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093","_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/40812528"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1093#discussion_r40812528"},"pull_request":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093"}}},"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093","id":46352527,"html_url":"https://github.com/pytest-dev/pytest/pull/1093","diff_url":"https://github.com/pytest-dev/pytest/pull/1093.diff","patch_url":"https://github.com/pytest-dev/pytest/pull/1093.patch","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1093","number":1093,"state":"open","locked":false,"title":"Fix internal error when filtering tracebacks where one entry was generated by an exec() statement","user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"body":"Fix #995","created_at":"2015-09-30T01:30:27Z","updated_at":"2015-09-30T15:56:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d6b9a946575a4de92ab225484836a2df30b5e52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093/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/1093/comments","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/11f100813e4aa40d5c89f904aea6e2ac38c4607e","head":{"label":"nicoddemus:relto-bug","ref":"relto-bug","sha":"11f100813e4aa40d5c89f904aea6e2ac38c4607e","user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"repo":{"id":37492961,"name":"pytest","full_name":"nicoddemus/pytest","owner":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicoddemus/pytest","description":"The pytest testing tool makes it easy to write small tests, yet scales to support complex functional testing","fork":true,"url":"https://api.github.com/repos/nicoddemus/pytest","forks_url":"https://api.github.com/repos/nicoddemus/pytest/forks","keys_url":"https://api.github.com/repos/nicoddemus/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicoddemus/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicoddemus/pytest/teams","hooks_url":"https://api.github.com/repos/nicoddemus/pytest/hooks","issue_events_url":"https://api.github.com/repos/nicoddemus/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/nicoddemus/pytest/events","assignees_url":"https://api.github.com/repos/nicoddemus/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/nicoddemus/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/nicoddemus/pytest/tags","blobs_url":"https://api.github.com/repos/nicoddemus/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicoddemus/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicoddemus/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicoddemus/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicoddemus/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/nicoddemus/pytest/languages","stargazers_url":"https://api.github.com/repos/nicoddemus/pytest/stargazers","contributors_url":"https://api.github.com/repos/nicoddemus/pytest/contributors","subscribers_url":"https://api.github.com/repos/nicoddemus/pytest/subscribers","subscription_url":"https://api.github.com/repos/nicoddemus/pytest/subscription","commits_url":"https://api.github.com/repos/nicoddemus/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicoddemus/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicoddemus/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicoddemus/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicoddemus/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/nicoddemus/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicoddemus/pytest/merges","archive_url":"https://api.github.com/repos/nicoddemus/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicoddemus/pytest/downloads","issues_url":"https://api.github.com/repos/nicoddemus/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/nicoddemus/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/nicoddemus/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/nicoddemus/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicoddemus/pytest/labels{/name}","releases_url":"https://api.github.com/repos/nicoddemus/pytest/releases{/id}","created_at":"2015-06-15T21:42:39Z","updated_at":"2015-06-15T21:42:43Z","pushed_at":"2015-09-30T03:37:21Z","git_url":"git://github.com/nicoddemus/pytest.git","ssh_url":"git@github.com:nicoddemus/pytest.git","clone_url":"https://github.com/nicoddemus/pytest.git","svn_url":"https://github.com/nicoddemus/pytest","homepage":"http://pytest.org/","size":6753,"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":"e9240f7eeeca501bcc87a052f3dc763d31eba119","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 testing tool 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}","created_at":"2015-06-15T20:28:27Z","updated_at":"2015-09-29T09:43:06Z","pushed_at":"2015-09-30T14:28:43Z","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":8244,"stargazers_count":326,"watchers_count":326,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":276,"forks":76,"open_issues":276,"watchers":326,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1093"},"issue":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1093"},"comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1093/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1093/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/1093/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/pytest/statuses/11f100813e4aa40d5c89f904aea6e2ac38c4607e"}}}}