10000 Fix mathtext test with first font · matplotlib/matplotlib@dc8e5ee · GitHub
[go: up one dir, main page]

Skip to content

Commit dc8e5ee

Browse files
committed
Fix mathtext test with first font
1 parent 5215f1f commit dc8e5ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ def test_mathfont_rendering(baseline_images, fontset, index, text):
225225

226226
def test_fontinfo():
227227
fontpath = mpl.font_manager.findfont("DejaVu Sans")
228+
# get the first element
229+
fontpath = next(iter(fontpath.values()))
228230
font = mpl.ft2font.FT2Font(fontpath)
229231
table = font.get_sfnt_table("head")
230232
assert table['version'] == (1, 0)

0 commit comments

Comments
 (0)
0