[Twisted-Python] Some things I've learned: safer callbacks, better t.p.context

Itamar Turner-Trauring itamar at itamarst.org
Wed Oct 19 15:47:08 MDT 2016




On Wed, Oct 19, 2016, at 05:45 PM, Itamar Turner-Trauring wrote:
> Well... I had a test that went through synchronous Deferred path. And
> yeah, it was easier to write than async test. But it failed to catch a
> bug that was only in async case. So the problem I see is that
> supporting both in Deferred means you need twice the number of tests
> each time you use Deferreds.
>

Er, that was unclear. I had a bug that wasn't caught by tests because it
passed with sync Deferred and failed with async Deferred callback, and I
didn't have tests for latter.

--
Itamar Turner-Trauring

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20161019/20201182/attachment-0002.html>


More information about the Twisted-Python mailing list