[Twisted-Python] Re: [Twisted-commits] Small hack that I need for the beginnings of my woven functional testing

Andrew Bennetts andrew-twisted at puzzling.org
Sat Jun 14 03:47:06 EDT 2003


On Fri, Jun 13, 2003 at 01:44:59PM -0500, dp CVS wrote:
> Modified files:
> Twisted/twisted/trial/runner.py 1.4 1.5
> 
> Log message:
> Small hack that I need for the beginnings of my woven functional testing
> framework; hopefully this can be removed sometime later
[...]
>  
>      def runTests(self, output):
>          self.testCase = self.testClass()
> +        self.testCase.output = output
>          self.testCase.setUpClass()
>          for methodName in self.methodNames:
>              method = getattr(self.testCase, methodName)

This change broke 2 tests in Twisted that already used that attribute.
Should we change the tests, or this hack?  What is it for, anyway?

Oh, and please run tests before you checkin, this isn't the only thing that
has been broken recently.

-Andrew.





More information about the Twisted-Python mailing list