Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--pdb and yield tests #1324

Closed
anntzer opened this issue Jan 13, 2016 · 2 comments
Closed

--pdb and yield tests #1324

anntzer opened this issue Jan 13, 2016 · 2 comments
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Jan 13, 2016

Currently, py.test --pdb 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 nose-devs/nose2#260)

@RonnyPfannschmidt RonnyPfannschmidt changed the title --pdb and generative tests --pdb and yield tests Jan 13, 2016
@RonnyPfannschmidt
Copy link
Member

Py.test Wants to deprecate yield tests

The current implementation is problematic, see #16 and #167
A proper fix will hopefully arrive py.test 3.0

@RonnyPfannschmidt RonnyPfannschmidt added this to the 3.0 milestone Jan 13, 2016
nicoddemus added a commit to nicoddemus/pytest that referenced this issue Jul 12, 2016
@RonnyPfannschmidt
Copy link
Member

addressed via #1714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants