pytest-pudb
pytest-pudb copied to clipboard
Look at __tracebackhide__
Functions like numpy.testing.assert_equal add __tracebackhide__ = True to their locals to make pytest ignore them in the traceback reporting. The --pudb flag should automatically jump up to the first frame that doesn't have __tracebackhide__, so that it starts on the same frame that is shown in the test failure traceback.