-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Deprecate unused testing cleanup mechanisms #17042
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
Conversation
b05f3db
to
88cfd28
Compare
901685a
to
a61f71b
Compare
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.
Please use the deprecation decorators.
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 isn't a deprecation, you have just removed these.
What is the motivation for deprecating these? Just general cleanup?
I take #14329 (comment) to mean that @anntzer would explicitly like to keep these methods.
I think these can/should stay for now.
@SidharthBansal Matplotlib is a very widely used library, and effectively anything that we expose is likely used by tons of people regardless of whether we intended it for external use or not. Thereforce we try not to remove stuff unless there's a clear reason to ("clear" being something that you can only evaluate with some experience...) and even then, we need a deprecation period where the thing stays but third-party users who rely on it get a warning that the API is going away.
In this specific case, I think this API has a legitimate use case and is self-contained enough that it does not cause undue maintenance burden by staying. Obviously @timhoffm had a different opinion in #17042 and may therefore want to chime in.
My opinion is to close as wontfix, but again let's give @timhoffm time to give his opinion as well. Or sometimes issues just need more discussion :)
I think we can proactively close this. If @timhoffm wants more discussion, he can re-open.
@anntzer I'm fine with keeping if you think it's worth it.
PR Summary
The class matplotlib.testing.decorators.CleanupTestCase and the decorator matplotlib.testing.decorators.cleanup are not used in the code base. We have an automatic cleanup via an auto-used fixture instead. This PR removes them.
Fixes #14329
PR Checklist