Hi folks,
if you are hacking hooks or otherwise debugging pytest and plugins
you can now use "--pdb" when collect/internal errors appear.
For that, I have introduced a new experimental hook
"pytest_exception_interact" which could also be used
by IDE integrators for their debugging views, e.g.:
def pytest_exception_interact(call):
excinfo = call.excinfo
pydev.set_trace(excinfo.type, excinfo.value, excinfo.tb)
when this hook is called, stdout/stderr capturing will
be de-activated already. It could also be used to spawn
up a http/socket server so that one could remotely connect
to it for debugging sessions.
This is the commit:
https://bitbucket.org/hpk42/pytest/commits/1d3ebb313d68d4bcb3f1a2e575febf196689731b
cheers,
holger
_______________________________________________
Pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev