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

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Oct 19 18:07:05 MDT 2016


> On Oct 19, 2016, at 4:25 PM, Jean-Paul Calderone <exarkun at twistedmatrix.com> wrote:
> 
> It's also possible to write a little bit of testing library code and get both versions of the test nearly for free.  Unfortunately, I very rarely see test suites written that way.  I think many people don't realize there are two cases to handle or believe testing both cases is too expensive for them (perhaps because they don't realize you can reuse the code for doing so to save on the cost).

I don't think even I've ever written a test suite that way.  Could we provide any utilities in Twisted to make this easier, or even more importantly, more obvious?

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


More information about the Twisted-Python mailing list