X Tutup
Skip to content

enable previously leftout test_usetex#6918

Merged
tacaswell merged 5 commits intomatplotlib:masterfrom
jenshnielsen:addtestusetextodefaulttests
Aug 30, 2016
Merged

enable previously leftout test_usetex#6918
tacaswell merged 5 commits intomatplotlib:masterfrom
jenshnielsen:addtestusetextodefaulttests

Conversation

@jenshnielsen
Copy link
Copy Markdown
Member

Follow up to #6917 with the tests only on master

@jenshnielsen
Copy link
Copy Markdown
Member Author

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

@jenshnielsen jenshnielsen force-pushed the addtestusetextodefaulttests branch from 9030879 to 50c0b74 Compare August 13, 2016 07:43
@jenshnielsen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

I think this is ready to land now

@Kojoley
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants

X Tutup