← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428424] Re: Remove use of contextlib.nested

 

** Changed in: nova
     Assignee: ChangBo Guo(gcb) (glongwave) => Davanum Srinivas (DIMS) (dims-v)

** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1428424

Title:
  Remove use of contextlib.nested

Status in Cinder:
  Fix Released
Status in Glance:
  Fix Released
Status in neutron:
  Fix Released
Status in OpenStack Compute (nova):
  Fix Released

Bug description:
      The contextlib.nested call has been deprecated
      in Python 2.7. This causes DeprecationWarning
      messages in the unit tests.
      
      There are also known issues with contextlib.nested
      that were addressed by the native support for
      multiple "with" variables. For instance, if the
      first object is created but the second one throws
      an exception, the first object's __exit__ is never
      called. For more information see
      https://docs.python.org/2/library/contextlib.html#contextlib.nested
      contextlib.nested is also not compatible in Python 3.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1428424/+subscriptions


References