erikrose/nose-progressive — Issue #18: Hide leading nose stack frames
Author: erikrose
Created: 2011-10-20 23:38:51+00:00
State: open

Like the unittest ones, hide the nose ones. They appear when you have top-level functions that are tests, like this:

FAIL: tests.tests:test_querying_fields
bbedit +197 /Users/erose/Virtualenvs/elasticutils/lib/python2.6/site-packages/nose/case.py # runTest
self.test(*self.arg)
bbedit +118 tests/tests.py # test_querying_fields
eq_(implicit._build_query(), explicit._build_query())
bbedit +31 /Users/erose/Virtualenvs/elasticutils/lib/python2.6/site-packages/nose/tools.py # eq_
assert a == b, msg or "%r != %r" % (a, b)

We're smart enough to find the test frame to highlight it, so let's just skip everything before that and save screen space and reading. We should make the frame guesser more conservative, as right now it defaults to the last frame.