← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428424] [NEW] Remove use of contextlib.nested

 

Public bug reported:

    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.

** Affects: nova
     Importance: Undecided
     Assignee: ChangBo Guo(gcb) (glongwave)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => ChangBo Guo(gcb) (glongwave)

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

Title:
  Remove use of contextlib.nested

Status in OpenStack Compute (Nova):
  In Progress

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/nova/+bug/1428424/+subscriptions


Follow ups

References