← Back to DAGDA | Support | Source: https://github.com/ansible/ansible/issues/76452
Skip to content

ansible: mail integration tests uses the asyncore module which has been removed in Python 3.11 #76452

Closed

Description

@vstinner

Summary

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.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Activity

  1. vstinner commented on Dec 2, 2021

    @vstinner
    Author

    Details about the asyncore, asynchat and smtpd modules removal:

  2. added
    bug
    needs_triage
    on Dec 3, 2021
  3. sivel commented on Dec 3, 2021

    @sivel
    Member

    !component =lib/ansible/modules/mail.py

  4. ansibot commented on Dec 3, 2021

    @ansibot
    Contributor

    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

  5. removed
    needs_triage
    on Dec 6, 2021
  6. locked and limited conversation to collaborators on Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.13bot_closedbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions