There are unused imports in the tests. There have been previous efforts to remove them from the stdlib and tests:
I'll remove some from the tests and add a lint rule to prevent new ones. Often they're forgotten when refactoring code or removing deprecations.
This is a minor feature, which does not need previous discussion elsewhere
No response
gh-134357: Remove unused imports in tests (#134340)
pythongh-134357: Remove unused imports in tests (python#134340)
Activity
gh-134357: Remove unused imports in tests (#134340)
pythongh-134357: Remove unused imports in tests (python#134340)
pythongh-134357: Remove unused imports in tests (python#134340)
pythongh-134357: Remove unused imports in tests (python#134340)