[TIP] Failure Post-Mortem Debugging with Nose/Unittest

Maru Newby mnewby at internap.com
Mon Mar 5 22:00:04 PST 2012


Trivial I know, but I went ahead and wrote a plugin.  It's on github if anyone is interested:

https://github.com/marun/nose-curtain


Maru

On 2012-03-02, at 8:20 PM, Maru Newby wrote:

> Long time listener, first time caller...
> 
> When I execute nose (python2.6, latest version of nose) against test classes that extend unittest.TestCase and use any of the assert* methods, an assertion failure drops me into the assertion method definition rather than assert* method call.  I can see that this would be simple enough to fix with a plugin that implemented formatFailure and filtered out the last traceback, but I can't help but think that somebody must have solved this problem already.  Anybody?  Or should I implement the plugin myself?
> 
> Thanks,
> 
> 
> Maru




More information about the testing-in-python mailing list