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
This commit is contained in:
Takashi NATSUME 2019-06-13 14:56:35 +09:00
parent 52d8d3d7f6
commit 75a1ba2722
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ class ResourceFilterTestCase(test.NoDBTestCase):
{'key': 'baz', 'value': 'wibble'}], [])
# Test for regex
self._assert_filtering(rl, {'value': '\\Aqu..*\\Z(?s)'}, [i22])
self._assert_filtering(rl, {'value': '(?s)\\Aqu..*\\Z'}, [i22])
# Make sure bug #1365887 is fixed
i1['metadata']['key3'] = 'a'