From 5f57c498b3c26fe2e3c60a1865916db9631b1184 Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:23:40 +0300 Subject: [PATCH] Adjusted test to latest changes in Pillow repo (#220) Signed-off-by: Alexander Piskun --- tests/write_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/write_test.py b/tests/write_test.py index a7d5e0c9..2cdf0fe7 100644 --- a/tests/write_test.py +++ b/tests/write_test.py @@ -316,7 +316,7 @@ def test_I_color_modes_to_10_12_bit(enc_bits, save_format): # noqa try: pillow_heif.options.SAVE_HDR_TO_12_BIT = bool(enc_bits == 12) src_pillow = Image.open(Path("images/non_heif/L_16__29x100.png")) - assert src_pillow.mode == "I" + assert src_pillow.mode in ("I", "I;16") # Pillow 10.3+ will open in `I;16` for mode in ("I", "I;16", "I;16L"): i_mode_img = src_pillow.convert(mode=mode) out_heic = BytesIO()