nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

--pdb-failure and generative tests

Open anntzer opened this issue 10 years ago • 1 comments

Currently, nosetests --pdb-failure or nose2 -D are not optimal for generative tests, as the backtrace goes into the part of nose's code that runs the generator, instead of going into the generator itself. I'd guess it should be possible (if somewhat hackish) to retrieve the traceback of the generator instead (gen.gi_frame) and stitch it into the current traceback, so that the generator's frame becomes accessible in pdb via up.

Thoughts?

(crossposted as pytest-dev/pytest#1324)

anntzer avatar Jan 13 '16 03:01 anntzer

Hi,

Sorry I'm quite late on this. You're making a valid point. There are a few issues I'd like to address first though, and some of them might require some siginificant changes in the generative tests plugin (like https://github.com/nose-devs/nose2/issues/80), so I'll keep that in mind when touching it.

little-dude avatar Feb 25 '16 22:02 little-dude