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,