MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_find_invalid

Function test_find_invalid

lib/matplotlib/tests/test_font_manager.py:192–201  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

190
191
192def test_find_invalid(tmp_path):
193
194 with pytest.raises(FileNotFoundError):
195 get_font(tmp_path / 'non-existent-font-name.ttf')
196
197 with pytest.raises(FileNotFoundError):
198 get_font(str(tmp_path / 'non-existent-font-name.ttf'))
199
200 with pytest.raises(FileNotFoundError):
201 get_font(bytes(tmp_path / 'non-existent-font-name.ttf'))
202
203
204@pytest.mark.skipif(sys.platform != 'linux' or not has_fclist,

Callers

nothing calls this directly

Calls 1

get_fontFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…