From cb841664e7715a8ac08a77fbc082393fcb983812 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 4 Mar 2025 11:51:27 +1100 Subject: [PATCH] Use new variable for different type --- Tests/test_file_sun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(