nose2
nose2 copied to clipboard
TypeError when using ext. log handling
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)
I don't think any python code should do that. How exactly your logging module is modifying the traceback?
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.
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.
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.
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?