Unit tests fail due to unsupported .removeprefix() in python 3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Unassigned | ||
Yoga |
New
|
Undecided
|
Unassigned | ||
Zed |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Description
===========
When running unit tests on python3.7 two tests fail:
nova.tests.
nova.tests.
Steps to reproduce
==================
Checkout to latest stable/train as of 17.08.2023
$ tox -e py37
Expected result
=============
All unit tests pass
Actual result
=============
`Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/builds/
b" location = location.
b"Attribute
b''`
`Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/builds/
b" self.test_
b' File "/builds/
b" location = location.
b"Attribute
b''`
Environment
===========
Python version 3.7.17
This issue was introduced with the following commit https:/ /review. opendev. org/c/openstack /nova/+ /866201