[openstack-dev] [quantum] unittest updates

Rosa, Andrea (HP Cloud Services) andrea.rosa at hp.com
Thu Feb 21 09:42:08 UTC 2013



>-----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?

--
Andrea Rosa



More information about the OpenStack-dev mailing list