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

Skip to content

Commit 6eb7d14

Browse files
authored
Merge pull request #24297 from meeseeksmachine/auto-backport-of-pr-24294-on-v3.6.x
Backport PR #24294 on branch v3.6.x (Run test if fontconfig is present)
2 parents 5be13bb + e2ffe90 commit 6eb7d14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def test_find_invalid(tmpdir):
150150
FT2Font(StringIO())
151151

152152

153-
@pytest.mark.skipif(sys.platform != 'linux', reason='Linux only')
153+
@pytest.mark.skipif(sys.platform != 'linux' or not has_fclist,
154+
reason='only Linux with fontconfig installed')
154155
def test_user_fonts_linux(tmpdir, monkeypatch):
155156
font_test_file = 'mpltest.ttf'
156157

0 commit comments

Comments
 (0)