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

Bug #1832670 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Takashi Natsume

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

Tags: testing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/665065

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 20.0.0.0rc1

This issue was fixed in the openstack/nova 20.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.