[Twisted-Python] Running Twisted tests with testtools

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Feb 9 08:54:14 EST 2012


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 
>>in
>>twisted.trial.unittest.TestCase.  Just a matter of someone getting to
>>it.
>
>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. :)

Jean-Paul



More information about the Twisted-Python mailing list