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

Skip to content

Commit ecca9c3

Browse files
committed
Don't explicitly rebuild font cache in test.
1 parent 9915b65 commit ecca9c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/tests/test_font_manager.py

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

77
import os
88

9-
from matplotlib.font_manager import findfont, FontProperties, _rebuild
9+
from matplotlib.font_manager import findfont, FontProperties
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()
1917
font = findfont(
2018
FontProperties(family=["sans-serif"]))
2119
assert_equal(os.path.basename(font), 'cmmi10.ttf')
22-
# force it again
23-
_rebuild()

0 commit comments

Comments
 (0)