Python3.11: test failures (OpenstackManilaShellTest)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Fix Released
|
Medium
|
Cyril Roelandt |
Bug Description
The following tests fail on Python3.11:
manilaclient.
manilaclient.
manilaclient.
With the following error:
re.error: global flags not at the start of the expression at position 3
(Full stack not given because Launchpad will mess it up anyway)
This is because "global flags" should be used at the start of a regexp. Using them anywhere else has been deprecated in Python3.6 and has become an error in Python3.11:
$ cat example.py
import re
regex = 'foo(?m)'
print(re.
$ python3.10 example.py
/tmp/example.py:3: DeprecationWarning: Flags not at the start of the expression 'foo(?m)' but at position 3
print(
<re.Match object; span=(0, 3), match='foO'>
$ python3.11 example.py
...
re.error: global flags not at the start of the expression at position 3
Changed in python-manilaclient: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
importance: | Undecided → Medium |
milestone: | none → zed-client-release |
Fix proposed to branch: master /review. opendev. org/c/openstack /python- manilaclient/ +/851220
Review: https:/