[openstack-dev] [quantum] unittest updates

Monty Taylor mordred at inaugust.com
Thu Feb 21 22:13:28 UTC 2013



On 02/21/2013 09:42 AM, Rosa, Andrea (HP Cloud Services) wrote:
> 
> 
>> -----Original Message-----
>> From: Robert Collins [mailto:robertc at robertcollins.net]
>> Sent: 21 February 2013 05:23
>> To: OpenStack Development Mailing List
>> Subject: Re: [openstack-dev] [quantum] unittest updates
>>
>> Also, don't write tearDown's at all. I believe the current code uses unittest[2]
>> as base classes, and that supports addCleanup, which is better that tearDown
>> :)
> 
> Maybe I am wrong but addCleanup is new in python 2.7 using it could  break the compatibility with python 2.6.
> Is that correct?

That is correct- but it's in unittest2 which quantum currently uses -and
it's in testtools which we are trying to move to.

Monty



More information about the OpenStack-dev mailing list