[Twisted-Python] t.test.proto_helpers.StringTransportWithDisconnection.connectionLost

Adi Roiban adi at roiban.ro
Wed May 22 06:43:14 MDT 2013


[snip]

>> I have a test which always fails when running `trial twisted.test` but
>> pass if executed as an individual tests.... this is due to a failure
>> which is only raised at garbage collection.
>
>
> Wait, related to this problem? I would expect the test to just try and use
> the thing that comes out as a Failure, and check that it's of the
> appropriate type... I don't understand how GC comes in to play. Could you
> provide said test?
>

I remember reading somewhere (maybe official documentation) that
unhandled deferred which have a failure as a result are only logged at
reactor shutdown or when some garbage collection process take place.
I thought that this is the reason why the tests is failing.

I have added the details of the test in the ticket.

Thanks for the commment!
-- 
Adi Roiban



More information about the Twisted-Python mailing list