Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 8, 2025
1 parent 2400361 commit 7f3ec39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,13 +706,13 @@ def test_heif_raises_unidentified_image_error(self) -> None:
with Image.open("Tests/images/avif/rgba10.heif"):
pass

@pytest.mark.parametrize("alpha_premultipled", [False, True])
def test_alpha_premultiplied_true(self, alpha_premultipled: bool) -> None:
@pytest.mark.parametrize("alpha_premultiplied", [False, True])
def test_alpha_premultiplied_true(self, alpha_premultiplied: bool) -> None:
im = Image.new("RGBA", (10, 10), (0, 0, 0, 0))
im_buf = BytesIO()
im.save(im_buf, "AVIF", alpha_premultiplied=alpha_premultipled)
im.save(im_buf, "AVIF", alpha_premultiplied=alpha_premultiplied)
im_bytes = im_buf.getvalue()
assert has_alpha_premultiplied(im_bytes) is alpha_premultipled
assert has_alpha_premultiplied(im_bytes) is alpha_premultiplied

def test_timestamp_and_duration(self, tmp_path: Path) -> None:
"""
Expand Down

0 comments on commit 7f3ec39

Please sign in to comment.