Python3.11 unit test failures

Bug #2036378 reported by Vishal Manchanda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Unassigned

Bug Description

There are 7 VolumeBackup test failures with python3.11:

FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_available - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_available_incremental - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_from_snapshot_table - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_from_snapshot_volume_table - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_in_use - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_in_use_incremental - re.error: global flags not at the start of the expression at position 1
FAILED openstack_dashboard/dashboards/project/backups/tests.py::VolumeBackupsViewTests::test_create_backup_in_use_incremental_set_false - re.error: global flags not at the start of the expression at position 1

Changed in horizon:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/horizon/+/895945

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

Reviewed: https://review.opendev.org/c/openstack/horizon/+/895945
Committed: https://opendev.org/openstack/horizon/commit/1457628e0ea33065f3384d186fbea821d46910f6
Submitter: "Zuul (22348)"
Branch: master

commit 1457628e0ea33065f3384d186fbea821d46910f6
Author: manchandavishal <email address hidden>
Date: Wed Sep 20 21:15:13 2023 +0530

    Fix Python3.11 unit test failures

    In Python 3.11, regex have undergone changes in
    how they handle Unicode characters. In Python3.11,
    global flags must be placed right at the start of a
    regular expression. The following regex:

            validators.RegexValidator(r'^(?u)[^/]+$')
    must become:
            validators.RegexValidator(r'(?u)^[^/]+$')

    Closes-Bug: #2036378
    Change-Id: I3884ae5b3a32e33077cf3efeac649ac0c615fdda

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 23.4.0

This issue was fixed in the openstack/horizon 23.4.0 release.

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.