Skip to content

Commit cb0caa8

Browse files
Improve documentation in test_image_comparison_expect_rms method
1 parent 2e091b7 commit cb0caa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_compare_images.py

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def test_image_comparison_expect_rms(im1, im2, tol, expect_rms, tmp_path,
5555
succeed if compare_images succeeds. Otherwise, the test will succeed if
5656
compare_images fails and returns an RMS error almost equal to this value.
5757
"""
58+
# Change the working directory using monkeypatch to use a temporary
59+
# test specific directory
5860
monkeypatch.chdir(tmp_path)
5961
baseline_dir, result_dir = map(Path, _image_directories(lambda: "dummy"))
6062
# Copy "test" image to result_dir, so that compare_images writes

0 commit comments

Comments
 (0)