The light and condensed fonts are DejaVuSans, which happened to be
installed on the system on which that test was created. I think the test
should only rely on the fonts delivered with matplotlib.
I created a github issue:
I'm not quite sure if this should be considered release critical: it
does cause a test to break on some systems, but this reflects a problem
in the test, not in the functionality being tested.