-
-
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
Changes from all commits
9d04f01
c7cb1ac
98bcb6c
3005a35
1c2edb2
863ada7
585c0ba
9c829c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import pytest | ||
|
||
from matplotlib.font_manager import FontProperties | ||
|
||
import pytest | ||
|
||
# Attributes on FontProperties object to check for consistency | ||
keys = [ | ||
|
@@ -73,5 +73,5 @@ def test_fontconfig_str(): | |
|
||
|
||
def test_fontconfig_unknown_constant(): | ||
with pytest.warns(DeprecationWarning): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. I've added the test, please check |
||
with pytest.raises(ValueError): | ||
FontProperties(":unknown") |
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.