diff --git a/Tests/test_file_sun.py b/Tests/test_file_sun.py index c2f162cf9..782b5aac7 100644 --- a/Tests/test_file_sun.py +++ b/Tests/test_file_sun.py @@ -84,8 +84,8 @@ def test_rgbx() -> None: with Image.open(io.BytesIO(data)) as im: r, g, b = im.split() - im = Image.merge("RGB", (b, g, r)) - assert_image_equal_tofile(im, os.path.join(EXTRA_DIR, "32bpp.png")) + im_bgr = Image.merge("RGB", (b, g, r)) + assert_image_equal_tofile(im_bgr, os.path.join(EXTRA_DIR, "32bpp.png")) @pytest.mark.skipif(