Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8147810

Browse files
committed
Raise the already existing error with more information
1 parent fa16041 commit 8147810

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def compare_figure(fname, savefig_kwargs={}):
4949
shutil.copyfile(os.path.join(baseline_dir, fname), expected)
5050
err = compare_images(expected, actual, tol=0)
5151
if err:
52-
raise ImageComparisonFailure('images not close: %s vs. '
53-
'%s' % (actual, expected))
52+
raise ImageComparisonFailure(err)
5453

5554

5655
def create_figure():

0 commit comments

Comments
 (0)