Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24bc071 + 684db70 commit 4af8e7dCopy full SHA for 4af8e7d
1 file changed
lib/matplotlib/tests/test_font_manager.py
@@ -6,14 +6,18 @@
6
7
import os
8
9
-from matplotlib.font_manager import findfont, FontProperties
+from matplotlib.font_manager import findfont, FontProperties, _rebuild
10
from matplotlib import rc_context
11
12
13
def test_font_priority():
14
with rc_context(rc={
15
'font.sans-serif':
16
['cmmi10', 'Bitstream Vera Sans']}):
17
+ # force the font manager to rebuild it self
18
+ _rebuild()
19
font = findfont(
20
FontProperties(family=["sans-serif"]))
21
assert_equal(os.path.basename(font), 'cmmi10.ttf')
22
+ # force it again
23
0 commit comments