Unittest2 on python 2.6

Andrea Crotti andrea.crotti.0 at gmail.com
Sun Mar 18 21:55:04 CET 2012

On 03/18/2012 03:46 PM, Terry Reedy wrote:
> 1. If the difference between unittest and unittest2 is strictly a 
> matter of deletions and addition, replace unittest with the union of 
> the two.
> 2. Put the try/except dance in a compat file. Then everywhere else 
> 'from compat import unittest'. This idea is one of those used to write 
> code that will run on both 2.x and 3.x

1. I think that unittest2 is a simple superset of unittest, but 
unittest2 is a backport of unittest module in Python 2.7, that's the point,
     so I don't see how I should replace it with the union..

2. good idea thanks

More information about the Python-list mailing list