Repository navigation
Fix font family lookup calculation - #2771
Conversation
There was a problem hiding this comment.
Is this file going to be available on all distros?
There was a problem hiding this comment.
It ships with matplotlib and is required for mathtext support (that's why I chose it). Some distros still monkey around with not including required fonts, of course.
There was a problem hiding this comment.
I should mention that using assert_equal is much nicer, as when it fails, it has enough context to tell you why they are different.
|
The test failiure is genuine on 2.6: |
|
The test failure is random. It necessarily changes global state, so when running the tests in parallel, there are problems. I think I need to look into how to "lock" this test so it doesn't run in parallel. |
I'm very surprised - surely these tests are being run in multiple processes rather than multiple threads, so surely we're not impacted by changing globals? I'm sure I've missed something here though... |
There was a problem hiding this comment.
shouldn't `from future_import division remove the need for all of this casting to float?
There was a problem hiding this comment.
True. I think this code was written prior to that. Will fix.
list (e.g. font.sans-serif) would be considered a perfect match whenever the selected font alias is the first in the font.family list. This broke the priority ordering of font names.
|
3.2 (as normal it seems) still has issues. |
|
Frustratingly, I can't reproduce it locally -- seems to be Travis-specific. |
Fix font family lookup calculation
|
@mdboom It seems to have passed last time it ran, I am going to merge it. |
As reported in mailing list thread "font setting in matplotlib 1.3.1"