You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/tests
Alex Willmer 5ad3d14ceb mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12
importlib.machinery.ModuleSpec and find_spec() were introduced in Python 3.4
under PEP 451. They replace the find_module() API of PEP 302, which was
deprecated from Python 3.4. They were removed in Python 3.12 along with the
imp module.

This change adds support for the PEP 451 APIs. Mitogen should no longer import
imp on Python versions that support ModuleSpec. Tests have been added to cover
the new APIs.

CI jobs have been added to cover Python 3.x on macOS.

Refs #1033
Co-authored-by: Witold Baryluk <witold.baryluk@gmail.com>
3 months ago
..
__init__.py tests: import a bunch more random unchecked in pieces. 6 years ago
affinity_test.py tests: Enable stricter error handling, fix resulting failures 2 years ago
connection_test.py ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04 2 years ago
env_file_watcher_test.py tests: Replace uses of assertTrue() with specific methods 2 years ago
module_finder_test.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
target_test.py Remove unused module imports 2 years ago