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

Skip to content

Commit 617d22a

Browse files
committed
fix a bug introduced in c998561
changing the message formatting to use previously assembled results dictionary broke due to the tolerance not being included in the results dictionary.
1 parent 9fd85d1 commit 617d22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def compare_images(expected, actual, tol, in_decorator=False):
335335
save_diff_image(expected, actual, diff_image)
336336

337337
results = dict(rms=rms, expected=str(expected),
338-
actual=str(actual), diff=str(diff_image))
338+
actual=str(actual), diff=str(diff_image), tol=tol)
339339

340340
if not in_decorator:
341341
# Then the results should be a string suitable for stdout.

0 commit comments

Comments
 (0)