{"action":"created","comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/32676555","id":32676555,"diff_hunk":"@@ -225,10 +225,18 @@ def _compare_eq_iterable(left, right, verbose=False):\n     # dynamic import to speedup pytest\n     import difflib\n \n-    left = pprint.pformat(left).splitlines()\n-    right = pprint.pformat(right).splitlines()\n-    explanation = [u('Full diff:')]\n-    explanation.extend(line.strip() for line in difflib.ndiff(left, right))\n+    try:\n+        left_formatting = pprint.pformat(left).splitlines()\n+        right_formatting = pprint.pformat(right).splitlines()\n+        explanation = [u('Full diff:')]\n+    except RuntimeError:","path":"_pytest/assertion/util.py","position":null,"original_position":12,"commit_id":"6cac31ef7d214431804e289cb57a2464a3cf9eec","original_commit_id":"420ab9a20ed1f67ffe19b38809e6fa3a473a25b8","user":{"login":"edisongustavo","id":234595,"avatar_url":"https://avatars.githubusercontent.com/u/234595?v=3","gravatar_id":"","url":"https://api.github.com/users/edisongustavo","html_url":"https://github.com/edisongustavo","followers_url":"https://api.github.com/users/edisongustavo/followers","following_url":"https://api.github.com/users/edisongustavo/following{/other_user}","gists_url":"https://api.github.com/users/edisongustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/edisongustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisongustavo/subscriptions","organizations_url":"https://api.github.com/users/edisongustavo/orgs","repos_url":"https://api.github.com/users/edisongustavo/repos","events_url":"https://api.github.com/users/edisongustavo/events{/privacy}","received_events_url":"https://api.github.com/users/edisongustavo/received_events","type":"User","site_admin":false},"body":"Catching `Exception` now","created_at":"2015-06-17T21:23:14Z","updated_at":"2015-06-17T21:23:14Z","html_url":"https://github.com/pytest-dev/pytest/pull/786#discussion_r32676555","pull_request_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/786","_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/32676555"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/786#discussion_r32676555"},"pull_request":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/786"}}},"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/786","id":37943726,"html_url":"https://github.com/pytest-dev/pytest/pull/786","diff_url":"https://github.com/pytest-dev/pytest/pull/786.diff","patch_url":"https://github.com/pytest-dev/pytest/pull/786.patch","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/786","number":786,"state":"open","locked":false,"title":"Fix Python2 bug with PrettyPrinter raising with sets of unsortable elements","user":{"login":"edisongustavo","id":234595,"avatar_url":"https://avatars.githubusercontent.com/u/234595?v=3","gravatar_id":"","url":"https://api.github.com/users/edisongustavo","html_url":"https://github.com/edisongustavo","followers_url":"https://api.github.com/users/edisongustavo/followers","following_url":"https://api.github.com/users/edisongustavo/following{/other_user}","gists_url":"https://api.github.com/users/edisongustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/edisongustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisongustavo/subscriptions","organizations_url":"https://api.github.com/users/edisongustavo/orgs","repos_url":"https://api.github.com/users/edisongustavo/repos","events_url":"https://api.github.com/users/edisongustavo/events{/privacy}","received_events_url":"https://api.github.com/users/edisongustavo/received_events","type":"User","site_admin":false},"body":"Fixes issue #718 \r\n\r\nMy reasoning on this is that it is better than show something than not showing anything at all. Since I think that `repr()` is a safe method, I resort to comparing strings on the _full diff_.\r\n\r\nI noticed that the `PrettyPrinter` module only has this bug in python 2, not on python 3, that's why I don't run the test on python 3.","created_at":"2015-06-17T20:35:38Z","updated_at":"2015-06-17T21:23:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"819395d64c2fb2ca97dd9c4473e45f1db4643ae9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/786/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/786/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/786/comments","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/6cac31ef7d214431804e289cb57a2464a3cf9eec","head":{"label":"edisongustavo:pytest-2.7","ref":"pytest-2.7","sha":"6cac31ef7d214431804e289cb57a2464a3cf9eec","user":{"login":"edisongustavo","id":234595,"avatar_url":"https://avatars.githubusercontent.com/u/234595?v=3","gravatar_id":"","url":"https://api.github.com/users/edisongustavo","html_url":"https://github.com/edisongustavo","followers_url":"https://api.github.com/users/edisongustavo/followers","following_url":"https://api.github.com/users/edisongustavo/following{/other_user}","gists_url":"https://api.github.com/users/edisongustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/edisongustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisongustavo/subscriptions","organizations_url":"https://api.github.com/users/edisongustavo/orgs","repos_url":"https://api.github.com/users/edisongustavo/repos","events_url":"https://api.github.com/users/edisongustavo/events{/privacy}","received_events_url":"https://api.github.com/users/edisongustavo/received_events","type":"User","site_admin":false},"repo":{"id":37495871,"name":"pytest","full_name":"edisongustavo/pytest","owner":{"login":"edisongustavo","id":234595,"avatar_url":"https://avatars.githubusercontent.com/u/234595?v=3","gravatar_id":"","url":"https://api.github.com/users/edisongustavo","html_url":"https://github.com/edisongustavo","followers_url":"https://api.github.com/users/edisongustavo/followers","following_url":"https://api.github.com/users/edisongustavo/following{/other_user}","gists_url":"https://api.github.com/users/edisongustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/edisongustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisongustavo/subscriptions","organizations_url":"https://api.github.com/users/edisongustavo/orgs","repos_url":"https://api.github.com/users/edisongustavo/repos","events_url":"https://api.github.com/users/edisongustavo/events{/privacy}","received_events_url":"https://api.github.com/users/edisongustavo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edisongustavo/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/edisongustavo/pytest","forks_url":"https://api.github.com/repos/edisongustavo/pytest/forks","keys_url":"https://api.github.com/repos/edisongustavo/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edisongustavo/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edisongustavo/pytest/teams","hooks_url":"https://api.github.com/repos/edisongustavo/pytest/hooks","issue_events_url":"https://api.github.com/repos/edisongustavo/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/edisongustavo/pytest/events","assignees_url":"https://api.github.com/repos/edisongustavo/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/edisongustavo/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/edisongustavo/pytest/tags","blobs_url":"https://api.github.com/repos/edisongustavo/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edisongustavo/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edisongustavo/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/edisongustavo/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edisongustavo/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/edisongustavo/pytest/languages","stargazers_url":"https://api.github.com/repos/edisongustavo/pytest/stargazers","contributors_url":"https://api.github.com/repos/edisongustavo/pytest/contributors","subscribers_url":"https://api.github.com/repos/edisongustavo/pytest/subscribers","subscription_url":"https://api.github.com/repos/edisongustavo/pytest/subscription","commits_url":"https://api.github.com/repos/edisongustavo/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/edisongustavo/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/edisongustavo/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/edisongustavo/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/edisongustavo/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/edisongustavo/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edisongustavo/pytest/merges","archive_url":"https://api.github.com/repos/edisongustavo/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edisongustavo/pytest/downloads","issues_url":"https://api.github.com/repos/edisongustavo/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/edisongustavo/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/edisongustavo/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/edisongustavo/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edisongustavo/pytest/labels{/name}","releases_url":"https://api.github.com/repos/edisongustavo/pytest/releases{/id}","created_at":"2015-06-15T23:02:15Z","updated_at":"2015-06-15T23:02:16Z","pushed_at":"2015-06-17T21:21:30Z","git_url":"git://github.com/edisongustavo/pytest.git","ssh_url":"git@github.com:edisongustavo/pytest.git","clone_url":"https://github.com/edisongustavo/pytest.git","svn_url":"https://github.com/edisongustavo/pytest","homepage":"http://pytest.org/","size":52362,"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:pytest-2.7","ref":"pytest-2.7","sha":"0431b8bb741a0d6640535cf881820edbbdd4e1aa","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-06-17T20:07:14Z","pushed_at":"2015-06-17T21:21:30Z","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":52634,"stargazers_count":69,"watchers_count":69,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":302,"forks":12,"open_issues":302,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/786"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/786"},"issue":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/786"},"comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/786/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/786/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/786/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/pytest/statuses/6cac31ef7d214431804e289cb57a2464a3cf9eec"}}}}