8000 Merge pull request #3074 from tacaswell/fp_fix · matplotlib/matplotlib@4af8e7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4af8e7d

Browse files
committed
Merge pull request #3074 from tacaswell/fp_fix
TST : force re-building of font-cache
2 parents 24bc071 + 684db70 commit 4af8e7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66

77
import os
88

9-
from matplotlib.font_manager import findfont, FontProperties
9+
from matplotlib.font_manager import findfont, FontProperties, _rebuild
1010
from matplotlib import rc_context
1111

1212

1313
def test_font_priority():
1414
with rc_context(rc={
1515
'font.sans-serif':
1616
['cmmi10', 'Bitstream Vera Sans']}):
17+
# force the font manager to rebuild it self
18+
_rebuild()
1719
font = findfont(
1820
FontProperties(family=["sans-serif"]))
1921
assert_equal(os.path.basename(font), 'cmmi10.ttf')
22+
# force it again
23+
_rebuild()

0 commit comments

Comments
 (0)
0