From 0b56b6152f95d79d04ded3ab59310301c2965efc Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Mon, 22 Jun 2026 22:05:30 +0800 Subject: [PATCH] Increase AVIF test epsilon for loong64 Signed-off-by: Zhou Qiankang --- Tests/test_file_avif.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_avif.py b/Tests/test_file_avif.py index 7089ac85358..f8b29cb2c93 100644 --- a/Tests/test_file_avif.py +++ b/Tests/test_file_avif.py @@ -154,14 +154,14 @@ def test_write_rgb(self, tmp_path: Path) -> None: # avifdec hopper.avif avif/hopper_avif_write.png assert_image_similar_tofile( - reloaded, "Tests/images/avif/hopper_avif_write.png", 6.93 + reloaded, "Tests/images/avif/hopper_avif_write.png", 7.0 ) # This test asserts that the images are similar. If the average pixel # difference between the two images is less than the epsilon value, # then we're going to accept that it's a reasonable lossy version of # the image. - assert_image_similar(reloaded, im, 9.39) + assert_image_similar(reloaded, im, 9.5) def test_AvifEncoder_with_invalid_args(self) -> None: """