Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed CI error with Pillow 10.3.dev0 #220

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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