Skip to content

Commit 5f57c49

Browse files
authored
Adjusted test to latest changes in Pillow repo (#220)
Signed-off-by: Alexander Piskun <[email protected]>
1 parent f1ca852 commit 5f57c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/write_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_I_color_modes_to_10_12_bit(enc_bits, save_format): # noqa
316316
try:
317317
pillow_heif.options.SAVE_HDR_TO_12_BIT = bool(enc_bits == 12)
318318
src_pillow = Image.open(Path("images/non_heif/L_16__29x100.png"))
319-
assert src_pillow.mode == "I"
319+
assert src_pillow.mode in ("I", "I;16") # Pillow 10.3+ will open in `I;16`
320320
for mode in ("I", "I;16", "I;16L"):
321321
i_mode_img = src_pillow.convert(mode=mode)
322322
out_heic = BytesIO()

0 commit comments

Comments
 (0)