cloudbase-init/cloudbaseinit
Adrian Vladu 0fded69cb3 replace unittest.mock._get_target with mock one
Use the original importer for mock. Otherwise, the unit tests that
use importlib with context are not running in an isolated manner,
leading to various transient failures if `stestr` is not run with the
`--isolated` flag.

The unittest.mock._get_target has been changed in Python 3.11, by commit:
ab7fcc8fbd

This change is needed to add support for Python 3.11 and Python 3.12
unit testing.

Change-Id: Ic73f5280116673f771f5460cdfd3702f5fbe16b5
2023-11-09 15:39:45 +02:00
..
conf Add Google Cloud Engine metadata service 2020-02-26 13:26:05 +02:00
metadata Accept drives with vFAT label 'cidata' as a configdrive. 2023-05-14 06:32:55 +00:00
models nocloud: support for cloud-init network version 1 2020-07-01 19:08:47 +03:00
osutils Merge "Retry user load profile on Windows" 2022-12-07 15:17:29 +00:00
plugins crypto: replaced openssl with cryptography module 2022-12-12 14:22:56 +02:00
tests replace unittest.mock._get_target with mock one 2023-11-09 15:39:45 +02:00
utils Accept drives with vFAT label 'cidata' as a configdrive. 2023-05-14 06:32:55 +00:00
__init__.py Initial commit 2012-12-01 23:50:15 +02:00
constant.py Implement cloud-config runcmd 2020-01-14 17:05:01 +02:00
exception.py Retry user load profile on Windows 2021-01-13 13:04:26 +02:00
init.py use instance_id as string for plugin sections 2023-10-12 17:09:05 +03:00
shell.py Fix pythoncom thread model error 2019-08-19 16:35:56 +03:00
version.py Merge "Fixed all typos in comments" 2017-08-18 09:01:34 +00:00