8000 Remove redundant copying of baseline image · matplotlib/matplotlib@33fab16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33fab16

Browse files
Remove redundant copying of baseline image
1 parent eb01668 commit 33fab16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_compare_images.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def test_image_comparison_expect_rms(im1, im2, tol, expect_rms, tmp_path,
6060
# Copy both "baseline" and "test" image to result_dir, so that 1)
6161
# compare_images writes the diff to result_dir, rather than to the source
6262
# tree and 2) the baseline image doesn't appear missing to triage_tests.py.
63-
result_im1 = make_test_filename(result_dir / im1, "expected")
64-
shutil.copyfile(baseline_dir / im1, result_im1)
63+
# result_im1 = make_test_filename(result_dir / im1, "expected")
64+
# shutil.copyfile(baseline_dir / im1, result_im1)
6565
result_im2 = result_dir / im1
6666
shutil.copyfile(baseline_dir / im2, result_im2)
6767
results = compare_images(
68-
result_im1, result_im2, tol=tol, in_decorator=True)
68+
baseline_dir / im1, result_im2, tol=tol, in_decorator=True)
6969

7070
if expect_rms is None:
7171
assert results is None

0 commit comments

Comments
 (0)
0