Skip to content

Commit 6b901fe

Browse files
tacaswellQuLogic
andauthored
MNT: use existing variable for font name rather than hard-coding
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent b28e4c1 commit 6b901fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ def test_addfont_as_path():
183183
try:
184184
fontManager.addfont(path)
185185
added, = [font for font in fontManager.ttflist
186-
if font.fname.endswith('mpltest.ttf')]
186+
if font.fname.endswith(font_test_file)]
187187
fontManager.ttflist.remove(added)
188188
finally:
189189
to_remove = [font for font in fontManager.ttflist
190-
if font.fname.endswith('mpltest.ttf')]
190+
if font.fname.endswith(font_test_file)]
191191
for font in to_remove:
192192
fontManager.ttflist.remove(font)
193193

0 commit comments

Comments
 (0)