-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-134357: Remove unused imports in tests #134340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just have doubt about the Lib/test/support/__init__.py
change.
@@ -2728,7 +2727,6 @@ def iter_builtin_types(): | |||
# Fall back to making a best-effort guess. | |||
if hasattr(object, '__flags__'): | |||
# Look for any type object with the Py_TPFLAGS_STATIC_BUILTIN flag set. | |||
import datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import has to stay. It deserves a # noqa: F401
.
@encukou: Can you confirm?
ChannelError, ChannelNotFoundError, ChannelClosedError, | ||
ChannelEmptyError, ChannelNotEmptyError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be an intentional re-export? cc @ericsnowcurrently as test.support.interpreters
follows the layout of the (hopefully) soon-to-be interpreters
module
Like #120417 and #131152, remove unused imports in tests.
Also add lint rule (F401) to the Ruff
Lib/test/
config.