Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 5, 2025
1 parent 685cecd commit 85c554f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,8 @@ def _roundtrip(self, tmp_path: Path, mode: str, epsilon: float) -> None:
# difference between the two images is less than the epsilon value,
# then we're going to accept that it's a reasonable lossy version of
# the image.
target = hopper(mode)
if mode != "RGB":
target = target.convert("RGB")
assert_image_similar(image, target, epsilon)
expected = hopper()
assert_image_similar(image, expected, epsilon)

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

0 comments on commit 85c554f

Please sign in to comment.