◐ Shell
clean mode source ↗

Remove the unused import 'warnings' from unittest's loader module by JosephSBoyle · Pull Request #102479 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@JosephSBoyle

Not the most glamorous PR, but the import isn't being used and is imported every time $python -m unittest is run.

Warnings is lazily imported in this file prior to use.

AlexWaygood

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AlexWaygood

(I checked, the import is actually used on the 3.11 branch, so this can't be backported.)

carljm added a commit to carljm/cpython that referenced this pull request

Mar 7, 2023

carljm added a commit to carljm/cpython that referenced this pull request

Mar 8, 2023

Labels