{"issue":{"user":{"id":34519,"login":"jpellerin","url":"https://api.github.com/users/jpellerin","gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"created_at":"2011-12-14T16:11:52Z","title":"Define __unittest in scope of nose's assertion helpers to hide noisy stack frames","labels":[],"state":"closed","updated_at":"2011-12-21T18:46:47Z","id":2553899,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/nose-devs/nose/issues/453","closed_at":"2011-12-21T18:46:47Z","body":"On test failure or error, unittest uses some handy machinery for hiding the traceback frames that are internal to unittest (and thus very probably not broken). Specifically, it will hide any frames where a global __unittest symbol is in scope. What do you think of putting eq_(), assert_raises(), and similar functions someplace where a __unittest var is defined?\n\nIt would turn this...\n\n======================================================================\nFAIL: Video modal defaults for plcaeholder and text.\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/Users/erose/Checkouts/kitsune/apps/wiki/tests/test_parser.py\", line 449, in test_video_modal\n    eq_(1, doc('video video').length)\n  File \"/Users/erose/Checkouts/kitsune/vendor/packages/nose/nose/tools.py\", line 31, in eq_\n    assert a == b, msg or \"%r != %r\" % (a, b)\nAssertionError: 1 != 0\n----------------------------------------------------------------------\n\n...into this:\n\n======================================================================\nFAIL: Video modal defaults for plcaeholder and text.\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/Users/erose/Checkouts/kitsune/apps/wiki/tests/test_parser.py\", line 449, in test_video_modal\n    eq_(1, doc('video video').length)\nAssertionError: 1 != 0\n\n----------------------------------------------------------------------\n\n...saving lines and noise.\n\nGoogle Code Info:\nIssue #: 459\nAuthor: grinche...@gmail.com\nCreated On: 2011-10-18T08:22:28.000Z\nClosed On: ","number":453,"url":"https://api.github.com/repos/nose-devs/nose/issues/453","comments":4,"assignee":{"id":34519,"login":"jpellerin","url":"https://api.github.com/users/jpellerin","gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"}},"action":"closed"}