{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1749","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1749/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1749/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1749/events","html_url":"https://github.com/pytest-dev/pytest/issues/1749","id":166913142,"number":1749,"title":"Feature request: doctest report format as an option","user":{"login":"troianow","id":1373343,"avatar_url":"https://avatars.githubusercontent.com/u/1373343?v=3","gravatar_id":"","url":"https://api.github.com/users/troianow","html_url":"https://github.com/troianow","followers_url":"https://api.github.com/users/troianow/followers","following_url":"https://api.github.com/users/troianow/following{/other_user}","gists_url":"https://api.github.com/users/troianow/gists{/gist_id}","starred_url":"https://api.github.com/users/troianow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troianow/subscriptions","organizations_url":"https://api.github.com/users/troianow/orgs","repos_url":"https://api.github.com/users/troianow/repos","events_url":"https://api.github.com/users/troianow/events{/privacy}","received_events_url":"https://api.github.com/users/troianow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/doctests","name":"doctests","color":"fad8c7"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/easy","name":"easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-21T20:43:06Z","updated_at":"2016-07-23T13:21:20Z","closed_at":null,"body":"Adding an option to the plugin to choose the type of report (e.g. None, REPORT_UDIFF, REPORT_NDIFF, REPORT_CDIFF) rather than the hard-coded REPORT_UDIFF\r\n\r\nFor example\r\n\r\npy.test foo.py --doctest-module --doctest-report NONE\r\n\r\nWould set `REPORT_UDIFF = 0` in _pytest/doctest.py:68 and return:\r\n```\r\n================================== FAILURES ===================================\r\n______________________________ [doctest] foo.bar ______________________________\r\n013     '''\r\n014     >>> bar()\r\nExpected:\r\n       a  b\r\n    0  1  4\r\n    1  2  4\r\n    2  3  6\r\nGot:\r\n       a  b\r\n    0  1  4\r\n    1  2  5\r\n    2  3  6\r\n```\r\n\r\nwhile \r\npy.test foo.py --doctest-module --doctest-report UDIFF\r\n\r\nwould set `REPORT_UDIFF = doctest.REPORT_UDIFF\r\n\r\n` in _pytest/doctest.py:68 and return \r\n```\r\n================================== FAILURES ===================================\r\n______________________________ [doctest] foo.bar ______________________________\r\n013     '''\r\n014     >>> bar()\r\nDifferences (unified diff with -expected +actual):\r\n    @@ -1,4 +1,4 @@\r\n        a  b\r\n     0  1  4\r\n    -1  2  4\r\n    +1  2  5\r\n     2  3  6\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/234717897","html_url":"https://github.com/pytest-dev/pytest/issues/1749#issuecomment-234717897","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1749","id":234717897,"user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T13:21:20Z","updated_at":"2016-07-23T13:21:20Z","body":"Seems like that change was originally made in 9b4cca2bf46f4c6c7e490df050a26efac7727049 - maybe @hpk42 knows why he did that back then :laughing: "}}
{"actor":{"display_login":"The-Compiler"}}