Skip to content

Commit 9cb6462

Browse files
committed
Remove uuid before im1
1 parent f3edc87 commit 9cb6462

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/tests/test_compare_images.py

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

@@ -58,8 +58,7 @@ 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-
uid = str(uuid.uuid4())
62-
result_im1 = make_test_filename(result_dir / (uid + im1), "expected")
61+
result_im1 = make_test_filename(result_dir / im1, "expected")
6362
shutil.copyfile(baseline_dir / im1, result_im1)
6463
result_im2 = result_dir / im1
6564
shutil.copyfile(baseline_dir / im2, result_im2)

0 commit comments

Comments
 (0)