openstack-python-openstackc.../openstackclient
Stephen Finucane 4c31284936 Fix tests on Python 3.12
We were seeing the following test failures on Python 3.12:

  openstackclient.tests.unit.common.test_module.TestModuleList.test_module_list_all
  openstackclient.tests.unit.common.test_module.TestModuleList.test_module_list_no_options

Both failures were caused by missing attributes of 'sys', e.g.

  AttributeError: module 'sys' has no attribute 'builtin_module_names'

Fix this by exposing the real 'sys' module as part of our mock of
'sys.modules'.

Change-Id: I17391a46f08896f49dccaf75ad685dab1375a03d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-05-10 11:16:56 +01:00
..
api trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
common tox: Remove bandit skips, run via pre-commit 2024-04-26 13:17:15 +01:00
compute Merge "Improve output of 'server migrate --wait'" 2024-05-07 14:52:05 +00:00
identity identity: Make better use of argparse 2024-05-07 11:20:02 +01:00
image trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Router flavor_id can be a name" 2024-05-08 19:43:44 +00:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
tests Fix tests on Python 3.12 2024-05-10 11:16:56 +01:00
volume tox: Remove bandit skips, run via pre-commit 2024-04-26 13:17:15 +01:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00