Skip to content

Commit e2ffe90

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #24294: Run test if fontconfig is present
1 parent 5be13bb commit e2ffe90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

+2-1
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)