Skip to content

Commit 9b118ba

Browse files
committed
Debug font cache on Travis.
1 parent df2497e commit 9b118ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/font_manager.py

+3
Original file line numberDiff line numberDiff line change
@@ -1278,12 +1278,15 @@ def _rebuild():
12781278
try:
12791279
fontManager = json_load(_fmcache)
12801280
except Exception:
1281+
print("Rebuilding font cache.")
12811282
_rebuild()
12821283
else:
12831284
if getattr(fontManager, '_version', object()) != FontManager.__version__:
12841285
_rebuild()
12851286
else:
1287+
print("Reusing font cache.")
12861288
_log.debug("Using fontManager instance from %s", _fmcache)
1289+
json_dump(fontManager, sys.stdout)
12871290

12881291

12891292
findfont = fontManager.findfont

0 commit comments

Comments
 (0)