[Twisted-Python] Unhandled Error in python 3 test suite

Adi Roiban adi at roiban.ro
Mon Mar 30 04:52:05 MDT 2015


On 23 March 2015 at 15:29, Tristan Seligmann <mithrandi at mithrandi.net> wrote:
> On 23 March 2015 at 16:25, HawkOwl <hawkowl at atleastfornow.net> wrote:
>> It's not really a bug -- it's just that the stderr isn't being captured like real Trial does. Twisted will reraise errors so they show up in logs, but will actually handle them (I think, anyway). The traceback formatting just says it's an unhandled error. That is, it was handled by Twisted, but it was unhandled by user code, and generated an errback or such.
>
> Note that "Unhandled error in Deferred" is the default log message for
> log.err, and a lot (most?) of the code that logs a failure calls
> log.err without passing a different message.

I have no idea what you are talking about :(

I run deferred related tests using nose and standard pyunit 2.7.
Each time I see an  "Unhandled error in Deferred"  message in the log
it means that my test is poorly written and
does not make an explicit call to check the deferred value.. for
example using something similar to self.successResultOf()

If you say that it is ok to ignore those errors, fine by me.

I think that soon we should have trial on py3 and we will no longer
need to worry about this primitive test runner.

Cheers
-- 
Adi Roiban




More information about the Twisted-Python mailing list