GeezerVison is showing github.com — tests still rely on the removed stdlib modules asyncore/asynchat · Issue #93243 · python/cpython
tests still rely on the removed stdlib modules asyncore/asynchat #93243DescriptionReference: PEP 594 – Removing dead batteries from the standard library.
This issue tracks removal of the following modules:
- Demote from the public API into the test helpers
- Port tests onto relevant analogs, step by step
- smtpd
- asynchat and asyncore
- test.test_ftplib
- test.test_logging
- test.test_poplib
- test.test_smtplib
- test.test_ssl
- test.libregrtest.save_env
- Remove the remnescants
-
Lib/test/smtpd.py, PCbuild/*
-
Lib/test/support/async(hat|ore).py, PCbuild/*
- Dead links from What's New and release notes
Related issues:
ActivityJelleZijlstra commented on May 26, 2022 This requires finishing #1864 (which I need to get back to). arhadthedev commented on Jul 12, 2022 Asyncore-based test servers from test_ftp and test_logging cannot be ported to asyncio, the tested clients are blocking. However, instead of writing a server thread class from scratch, it would be nice to reuse test.support.threading_helper.Server from gh-92475. changed the title [-]PEP 594: Process "to be removed in 3.12" part of the plan[/-] [+]tests still rely on the removed stdlib modules asyncore/asynchat[/+] on Nov 29, 2023iritkatriel commented on Nov 29, 2023 Changing the title to reflect what still needs to be done. vstinner commented on Feb 27, 2025 PEP 594 has been fully implemented: asyncore, asynchat and smtpd have been removed from the stdlib.
Some tests still use asyncore, asynchat and smtpd: there is now a copy in Lib/test/support/ only for tests. While it would be nice to rewrite these tests using asyncio or threads, it seems like no one is interested to work on that.
I suggest to close the issue as "not planned". It's ok to leave tests are they are, since tests are now reliable and stable. iritkatriel commented on Feb 27, 2025 Reacted by Victor Stinner
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|