Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b901fe

Browse filesBrowse 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
Copy full SHA for 6b901fe

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_font_manager.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.