[Twisted-Python] Running Twisted tests with testtools

Jonathan Lange jml at mumak.net
Thu Feb 9 08:57:52 EST 2012

On Thu, Feb 9, 2012 at 1:54 PM,  <exarkun at twistedmatrix.com> wrote:
> On 12:09 pm, jml at mumak.net wrote:
>>On Thu, Feb 9, 2012 at 12:30 AM,  <exarkun at twistedmatrix.com> wrote:
>>>On 8 Feb, 10:15 pm, jml at mumak.net wrote:
>>>>> From the documentation:
>>>>* Trial spins the reactor a couple of times before cleaning it up,
>>>> ``AsynchronousDeferredRunTest`` does not.  If you rely on this
>>>>behavior, use
>>>> ``AsynchronousDeferredRunTestForBrokenTwisted``.
>>>I've expected for some time now that we would deprecate this behavior
>>>twisted.trial.unittest.TestCase.  Just a matter of someone getting to
>>Yeah. I think the last time I tried there were just too many broken
>>test cases in Twisted itself, which made the exercise quite daunting.
> Fortunately it lends itself quite well to incremental change.  One can
> generally meaningfully fix a single unit test/test case at a time. :)

Right. At the time it was discouraging because I felt like there were
a hundred tests to fix one at a time, then add the deprecation warning
and then a year later get to my actual goal of removing the extra
iterates. I don't feel that way any more.


More information about the Twisted-Python mailing list