[Twisted-Python] Re: [Twisted-commits] r14397 - This appears to fix 2.2 support for me.

Andrew Bennetts andrew-twisted at puzzling.org
Fri Sep 9 17:23:22 MDT 2005


On Fri, Sep 09, 2005 at 05:03:19PM -0600, Jonathan Lange wrote:
> Author: jml
> Date: Fri Sep  9 17:03:19 2005
> New Revision: 14397
> 
> Modified:
>    trunk/twisted/trial/runner.py
>    trunk/twisted/trial/test/test_adapters.py
>    trunk/twisted/trial/test/test_output.py
>    trunk/twisted/trial/unittest.py
> Log:
> This appears to fix 2.2 support for me.
> 
> 
> 
> Modified: trunk/twisted/trial/runner.py
> ==============================================================================
> --- trunk/twisted/trial/runner.py	(original)
> +++ trunk/twisted/trial/runner.py	Fri Sep  9 17:03:19 2005
> @@ -162,6 +162,8 @@
>              self.addDoctests(module.__doctests__)
>  
>      def addDoctests(self, obj):
> +        if sys.version[:2] <= (2, 2):
> +            return
>          from twisted.trial import tdoctest
>          self.addTest(tdoctest.ModuleDocTestsRunner(obj))

Make this at least issue a warning, please?

-Andrew.





More information about the Twisted-Python mailing list