Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make matplotlib.test() print meaninful messages when baseline images are not installed #2379

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

Merged

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Sep 27, 2013

Reported originally in the mailing list
http://www.mail-archive.com/[email protected]/msg27140.html

After installing matplotlib from standard Ubuntu packages, calling matplotlib.test() results in a lot of errors like:

IOError: Baseline image
'/home/user/result_images/test_triangulation/tripcolor1-expected.svg' does not exist.

This seems to be because baseline images are not included in the package (is it also required to run the tests from a particular directory?). I guess it happens in other distros and with windows installers too.

@mdboom
Copy link
Member

mdboom commented Sep 27, 2013

I've attached code that will raise an error message if the test data directory is missing.

pelson added a commit that referenced this pull request Sep 27, 2013
…t-data

Make matplotlib.test() print meaninful messages when baseline images are not installed
@pelson pelson merged commit e979bdf into matplotlib:v1.3.x Sep 27, 2013
@mdboom mdboom deleted the better-message-about-missing-test-data branch August 7, 2014 13:49
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.

2 participants