nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

TypeError when using ext. log handling

Open sabaini opened this issue 10 years ago • 5 comments

My tests handle exception logging elsewhere, and nose2 now fails in util.format_traceback() since sys.exc_info() now has None as traceback member (last)

sabaini avatar Mar 04 '15 11:03 sabaini

I don't think any python code should do that. How exactly your logging module is modifying the traceback?

thedrow avatar Mar 04 '15 12:03 thedrow

It's Openstacks' Tempest test suite. I'm honestly not sure how this modifies the traceback, however it has logging of it's own (incl. tracebacks), and I end up with a None object in tb.

sabaini avatar Mar 04 '15 13:03 sabaini

I guess I'd be fine with a PR fixing this but I'd really like to see a failing test case of some sort. Preferably in a form of a functional test if possible.

thedrow avatar Mar 04 '15 15:03 thedrow

fwiw tempest is using testtools. I made a testtools plugin to run tempest tests, that I'll publish soon. Also working on a marvin plugin for cloudstack.

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

I'm still seeing this issue when using nose2 (0.8.0) to run tests that inherit from testtools (2.3.0). Was this issue ever addressed?

ygalblum-stratoscale avatar Mar 13 '19 19:03 ygalblum-stratoscale