[openstack-dev] Please use 'unittest2', not 'unittest' everywhere.

Joshua Harlow harlowja at outlook.com
Tue Apr 14 15:43:49 UTC 2015


Sylvain Bauza wrote:
>
>
> Le 14/04/2015 14:49, Alexis Lee a écrit :
>> Robert Collins said on Thu, Apr 09, 2015 at 11:26:28AM +1200:
>>> Neutron was using 'unittest', but we depend on the fixes in cPython
>>> 3.5, which are backported in unittest2. We should not use 'unittest'
>>> itself anywhere in OpenStack, only 'unittest2'.
>> Can this be a hacking check or similar, to prevent regression?
>>
>>
>> Alexis
>
> Maybe a stupid question, but why not considering testtools for inheriting ?

+1

I also wonder why not this...

I've seen a-lot of inheriting from 
https://github.com/testing-cabal/testtools/blob/testtools-1.7.1/testtools/testcase.py#L176 
and just using that; doesn't that testcase there handle this 
differentiation internally (it appears to)?

>
> -Sylvain
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list