[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

Rémi Lapeyre report at bugs.python.org
Mon Feb 4 18:01:31 EST 2019


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

Hi, this is the only reason I still use pytest, I would love to be able to use only unittest and the constant copy-paste is not a great solution and is not very user friendly.

I would like to wotk on this issue.

StackOverflow has many example on how to override testRunner or to create decorators to call pm() on failure but there is no clean solution to do this yet.

It's especially a problem when using a project developped by another team that did not set up such utilities, but a default debugHook that calls pgb if a flag is given would be very useful.

----------
nosy: +remi.lapeyre

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18765>
_______________________________________


More information about the Python-bugs-list mailing list