We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e091b7 commit cb0caa8Copy full SHA for cb0caa8
lib/matplotlib/tests/test_compare_images.py
@@ -55,6 +55,8 @@ def test_image_comparison_expect_rms(im1, im2, tol, expect_rms, tmp_path,
55
succeed if compare_images succeeds. Otherwise, the test will succeed if
56
compare_images fails and returns an RMS error almost equal to this value.
57
"""
58
+ # Change the working directory using monkeypatch to use a temporary
59
+ # test specific directory
60
monkeypatch.chdir(tmp_path)
61
baseline_dir, result_dir = map(Path, _image_directories(lambda: "dummy"))
62
# Copy "test" image to result_dir, so that compare_images writes
0 commit comments