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

Skip to content

Commit 405f1eb

Browse files
story645ksunden
andcommitted
updated font_manager test to match new error message
Co-authored-by: Kyle Sunden <[email protected]>
1 parent 88479d4 commit 405f1eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_find_invalid(tmpdir):
146146

147147
# Not really public, but get_font doesn't expose non-filename constructor.
148148
from matplotlib.ft2font import FT2Font
149-
with pytest.raises(TypeError, match='path or binary-mode file'):
149+
with pytest.raises(TypeError, match='font file or binary-mode file'):
150150
FT2Font(StringIO())
151151

152152

0 commit comments

Comments
 (0)