Skip to content

Commit f3edc87

Browse files
committed
Add uuid in im1 name
1 parent f25c2d0 commit f3edc87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_compare_images.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pathlib import Path
22
import shutil
3-
3+
import uuid
44
import pytest
55
from pytest import approx
66

@@ -58,7 +58,8 @@ def test_image_comparison_expect_rms(im1, im2, tol, expect_rms):
5858
# Copy both "baseline" and "test" image to result_dir, so that 1)
5959
# compare_images writes the diff to result_dir, rather than to the source
6060
# tree and 2) the baseline image doesn't appear missing to triage_tests.py.
61-
result_im1 = make_test_filename(result_dir / im1, "expected")
61+
uid = str(uuid.uuid4())
62+
result_im1 = make_test_filename(result_dir / (uid + im1), "expected")
6263
shutil.copyfile(baseline_dir / im1, result_im1)
6364
result_im2 = result_dir / im1
6465
shutil.copyfile(baseline_dir / im2, result_im2)

0 commit comments

Comments
 (0)