Merge "Fix tests on Python 3.12"

This commit is contained in:
Zuul 2024-05-21 07:41:51 +00:00 committed by Gerrit Code Review
commit d9b95d776a

View File

@ -15,6 +15,7 @@
"""Test module module""" """Test module module"""
import sys
from unittest import mock from unittest import mock
from openstackclient.common import module as osc_module from openstackclient.common import module as osc_module
@ -43,6 +44,7 @@ module_name_5 = '_private_module.lib'
module_version_5 = '0.0.1' module_version_5 = '0.0.1'
MODULES = { MODULES = {
'sys': sys,
module_name_1: fakes.FakeModule(module_name_1, module_version_1), module_name_1: fakes.FakeModule(module_name_1, module_version_1),
module_name_2: fakes.FakeModule(module_name_2, module_version_2), module_name_2: fakes.FakeModule(module_name_2, module_version_2),
module_name_3: fakes.FakeModule(module_name_3, module_version_3), module_name_3: fakes.FakeModule(module_name_3, module_version_3),