From 9d4979311526ee5835b70a39e7c9a1581c28dc03 Mon Sep 17 00:00:00 2001 From: Herbert Kruitbosch Date: Wed, 11 May 2016 15:30:56 +0200 Subject: [PATCH] more explicit message for missing image --- lib/matplotlib/testing/decorators.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py index f61b1319470..1a4fe345708 100644 --- a/lib/matplotlib/testing/decorators.py +++ b/lib/matplotlib/testing/decorators.py @@ -232,7 +232,13 @@ def test(self): shutil.copyfile(orig_expected_fname, expected_fname) else: will_fail = True - fail_msg = 'Do not have baseline image %s' % expected_fname + fail_msg = ( + "Do not have baseline image {0} because this " + "file does not exist: {1}".format( + expected_fname, + orig_expected_fname + ) + ) @knownfailureif( will_fail, fail_msg,