Skip to content

Commit

Permalink
Adjusted test to latest changes in Pillow repo (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Mar 17, 2024
1 parent f1ca852 commit 5f57c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/write_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5f57c49

Please sign in to comment.