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.
Functions like
numpy.testing.assert_equaladd__tracebackhide__ = Trueto their locals to make pytest ignore them in the traceback reporting. The--pudbflag 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.