Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
wants to merge 8 commits into from

Conversation

bawejahritik
Copy link

@bawejahritik bawejahritik commented Dec 27, 2023

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

Copy link
Member

@dstansby dstansby left a 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):
Copy link
Member

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.

Copy link
Author

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!

Copy link
Author

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

Copy link
Member

@dstansby dstansby left a 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
Copy link
Member

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.

@QuLogic QuLogic changed the title Remove 3.7-deprecated api Remove 3.7-deprecated fontconfig api Jan 3, 2024
Copy link
Contributor

@anntzer anntzer left a 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.

@ksunden
Copy link
Member

ksunden commented Jan 8, 2024

@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!

@ksunden ksunden closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

6 participants