Open GoogleCodeExporter opened 8 years ago
After investigating the problem a bit further I found that it is caused by the
Capture plugin which turns the ev of the (ec, ev, tb) tuple error into a string
(by appending output). traceback.format_exception doesn't seem to like raw
string values very well (or you need to disable chaining, but then you don't
get the backtrace).
then I stumbled upon nose.proxy.ResultProxy._prepareErr which seems meant to
turn back this string into a meaningful exception (which is then printed line
xunit plugin). this could be useful.
Original comment by jean.giard@gmail.com
on 22 Nov 2011 at 1:52
I propose the attached patch which solves the problem.
(duplicate code from proxy.py:89, but didn't find a place to factorise it)
Original comment by jean.giard@gmail.com
on 17 Jan 2012 at 2:48
Attachments:
I've tested the patch and it seems to work, however an identical fix is
required in the addFailure method on line 216.
Original comment by lars.hv...@gmail.com
on 17 Feb 2013 at 10:07
Original issue reported on code.google.com by
jean.giard@gmail.com
on 14 Nov 2011 at 9:21