Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable previously leftout test_usetex #6918

Merged
merged 5 commits into from Aug 30, 2016

Conversation

jenshnielsen
Copy link
Member

Follow up to #6917 with the tests only on master

@jenshnielsen
Copy link
Member Author

Have not had the time to investigate why the png test fails. It passes with that image for me locally.

@jenshnielsen
Copy link
Member Author

Reproduced the failure locally on a Ubuntu 12.04 vm. The text looks correct but is slightly different. I don't think this is a font issue so it is probably due to different tex versions.
Attached diff between travis and current reference from my OSX machine
test_usetex-failed-diff

@jenshnielsen
Copy link
Member Author

This still need a skip if not latex decorator

Cannot use the decorator for similar reasons as matplotlib#6263
@tacaswell tacaswell added this to the 2.1 (next point release) milestone Aug 13, 2016
@jenshnielsen
Copy link
Member Author

I think this is ready to land now

@Kojoley
Copy link
Member

Kojoley commented Aug 15, 2016

@jenshnielsen please try to rearrange extension order. If it will pass with ['png', 'pdf'] then this is #6899 bug.

@jenshnielsen
Copy link
Member Author

@Kojoley Good point, I will give it a try

check_output(cmd)
except:
from nose import SkipTest
raise SkipTest('missing command: %s' % cmd[0])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to use skip_if_command_unavailable decorator?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the commit message

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the commit message

The actual problem commit is gone there and only comment left. :(

At least you can simplify this with matplotlib.checkdep_tex() call.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated this to use checkdep_usetex which is what we want

@jenshnielsen
Copy link
Member Author

I think this is ready to merge, the change in coverage seems to be a fluke. The tolerance does not seem to depend on the order it is passing and failing on different backends because of tex version differences. I can reproduce the image that matches travis on a ubuntu 12.04 vm (same os and texlive version as travis) but get different results with a modern texlive install.

@tacaswell tacaswell merged commit af16ac8 into matplotlib:master Aug 30, 2016
jenshnielsen added a commit to jenshnielsen/matplotlib that referenced this pull request Aug 31, 2016
The tests where fixed in matplotlib#6918 but not enabled for pytest
@jenshnielsen jenshnielsen deleted the addtestusetextodefaulttests branch August 31, 2016 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants