Skip to content

Commit 5433e79

Browse files
jankatinsmatthew-brett
authored andcommitted
TST: if no converter is found, skip the test
1 parent 72500af commit 5433e79

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy