← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1832670] Re: DeprecationWarning: Flags not at the start of the expression '\\\\Aqu..*\\\\Z(?s)'"

 

Reviewed:  https://review.opendev.org/665065
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=75a1ba27226c340b8fb30ce667a90a184d6ac864
Submitter: Zuul
Branch:    master

commit 75a1ba27226c340b8fb30ce667a90a184d6ac864
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date:   Thu Jun 13 14:56:35 2019 +0900

    Fix a warning about flags in an expression string
    
    In python 3, flags should be used first in the expression string.
    So fix an expression string in a unit test.
    
    *: https://docs.python.org/3/library/re.html#regular-expression-syntax
    
    Change-Id: I7af958ffb615979a0bad9c8f56a33256ed305aa2
    Closes-Bug: #1832670


** 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 OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1832670

Title:
  DeprecationWarning: Flags not at the start of the expression
  '\\\\Aqu..*\\\\Z(?s)'"

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  In unit tests on python 3 (3.6 and python 3.7), the following warning
  is output.

  2019-06-10 05:13:23.883288 | ubuntu-bionic | {3} nova.tests.unit.test_utils.ResourceFilterTestCase.test_filter_and_format_resource_metadata [0.022234s] ... ok
  2019-06-10 05:13:23.883384 | ubuntu-bionic |
  2019-06-10 05:13:23.883420 | ubuntu-bionic | Captured stderr:
  2019-06-10 05:13:23.883449 | ubuntu-bionic | ~~~~~~~~~~~~~~~~
  2019-06-10 05:13:23.883580 | ubuntu-bionic |     b"/home/zuul/src/opendev.org/openstack/nova/nova/utils.py:1039: DeprecationWarning: Flags not at the start of the expression '\\\\Aqu..*\\\\Z(?s)'"
  2019-06-10 05:13:23.883631 | ubuntu-bionic |     b'  for pattern in pattern_list])'
  2019-06-10 05:13:23.883658 | ubuntu-bionic |     b''

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


References