-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove 3.7-deprecated fontconfig api #27574
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
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.
Thanks for the PR - I've left a request to update the test intsead of removing it. Otherwise looks 👍
|
||
|
||
def test_fontconfig_unknown_constant(): | ||
with pytest.warns(DeprecationWarning): |
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.
Instead of deleting this test, could you change the warning check to an error check? That way we can make sure the error is raised as expected.
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.
For sure, I'll do that!
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.
I've added the test, please check
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.
Looks great! Could whoever merges this do a squash merge?
@@ -1,7 +1,7 @@ | |||
import pytest |
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.
Since pytest
is a third party library, it was above the matplotlib import following the PEP8 style guide so ideally it should stay there.
Co-authored-by: Ruth Comer <[email protected]>
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.
The correct fix is at #26884.
@bawejahritik Thanks for your interest, however we have merged the older pull request that included changes from related comments for this deprecation. We hope to hear from you again! |
PR summary
Removal of old and unused API that were marked as deprecated in 3.7 of Matplotlib and the corresponding test.
(issue #26865)
PR checklist