Merge pull request #575 from SheffieldML/matplotlib_testing

Fixing tests for Matplotlib plotting issue
This commit is contained in:
Alan Saul 2017-11-16 08:10:05 +00:00 committed by GitHub
commit f6542c059c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ try:
except ImportError:
# matplotlib not installed
from nose import SkipTest
raise SkipTest("Skipping Matplotlib testing")
raise SkipTest("Error importing matplotlib")
from unittest.case import TestCase
@ -68,7 +68,6 @@ if config.get('plotting', 'library') != 'matplotlib':
try:
from matplotlib import cbook, pyplot as plt
from matplotlib.testing.compare import compare_images
from matplotlib.testing.noseclasses import ImageComparisonFailure
except ImportError:
raise SkipTest("Matplotlib not installed, not testing plots")