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

Skip to content

Commit 06b5e1b

Browse files
Added tests/test_data folder and related changes
1 parent b5457ba commit 06b5e1b

88 files changed

Lines changed: 11 additions & 216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/matplotlib/tests/test_compare_images.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ 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+
dir_path = Path(__file__).parent / 'test_data/compare_images'
6162
result_im1 = make_test_filename(result_dir / im1, "expected")
62-
shutil.copyfile(baseline_dir / im1, result_im1)
63+
shutil.copyfile(dir_path / im1, result_im1)
6364
result_im2 = result_dir / im1
64-
shutil.copyfile(baseline_dir / im2, result_im2)
65+
shutil.copyfile(dir_path / im2, result_im2)
6566
results = compare_images(
6667
result_im1, result_im2, tol=tol, in_decorator=True)
6768

1.39 KB
1.39 KB
169 Bytes
185 Bytes
186 Bytes
721 Bytes

lib/matplotlib/tests/baseline_images/pngsuite/basn3p02.png renamed to lib/matplotlib/tests/test_data/compare_images/basn3p02.png

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)