8000 TST: if no converter is found, skip the test · matplotlib/matplotlib@f6b96e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6b96e5

Browse files
jankatinsmatthew-brett
authored andcommitted
TST: if no converter is found, skip the test
1 parent 890c5ad commit f6b96e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def convert(filename, cache):
174174
"""
175175
base, extension = filename.rsplit('.', 1)
176176
if extension not in converter:
177-
raise ImageComparisonFailure(
178-
"Don't know how to convert %s files to png" % extension)
177+
from nose import SkipTest
178+
raise SkipTest("Don't know how to convert %s files to png" % extension)
179179
newname = base + '_' + extension + '.png'
180180
if not os.path.exists(filename):
181181
raise IOError("'%s' does not exist" % filename)

0 commit comments

Comments
 (0)
0