You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ansible: mail integration tests uses the asyncore module which has been removed in Python 3.11 #76452
The ansible_collections/community/general/tests/integration/targets/mail/files/smtpserver.py uses import asyncore whereas this module has been removed in Python 3.11, after being deprecated since Python 3.6.
One option is to copy Python 3.10 asyncore.py file in ansible test suite. Another is that someone should maintain an asyncore module on PyPI.
Issue Type
Bug Report
Component Name
tests
Ansible Version
ansible-5.0.0 source code from PyPI.
Configuration
$ ansible-config dump --only-changed
OS / Environment
Any operating system.
Steps to Reproduce
Run the ansible integration test suite on Python 3.11.
Expected Results
ansible-5.0.0/ansible_collections/community/general/tests/integration/targets/mail/files/smtpserver.py must not fail.
Actual Results
I didn't try to run the Ansible test suite. I only noticed that "import asyncore" is used.
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
Activity
vstinner commentedon Dec 2, 2021
Details about the asyncore, asynchat and smtpd modules removal:
sivel commentedon Dec 3, 2021
!component =lib/ansible/modules/mail.py
ansibot commentedon Dec 3, 2021
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see:
https://github.com/ansible/ansibullbot/blob/devel/docs/collection_migration.md