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

Skip to content

Commit 77f3e1f

Browse files
authored
Merge pull request #24294 from xerus/failing_font_test
Run test if fontconfig is present
2 parents 3263cfc + 45a56d0 commit 77f3e1f

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)