Skip to content

Commit 9d49793

Browse files
author
Herbert Kruitbosch
committed
more explicit message for missing image
1 parent b16e6f3 commit 9d49793

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/testing/decorators.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,13 @@ def test(self):
232232
shutil.copyfile(orig_expected_fname, expected_fname)
233233
else:
234234
will_fail = True
235-
fail_msg = 'Do not have baseline image %s' % expected_fname
235+
fail_msg = (
236+
"Do not have baseline image {0} because this "
237+
"file does not exist: {1}".format(
238+
expected_fname,
239+
orig_expected_fname
240+
)
241+
)
236242

237243
@knownfailureif(
238244
will_fail, fail_msg,

0 commit comments

Comments
 (0)