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 protected]> 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 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/2036378 Title: Python3.11 unit test failures Status in OpenStack Dashboard (Horizon): Fix Released 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 To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/2036378/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

