Skip to content

Commit 2360d4f

Browse files
committed
Allow slight difference with libjpeg
1 parent 6938379 commit 2360d4f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Tests/test_file_jpeg.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,13 @@ def _n_qtables_helper(n: int, test_file: str) -> None:
621621

622622
qtable_from_quality = self.roundtrip(im, quality=quality).quantization
623623

624-
assert qtable_from_qtable_quality == qtable_from_quality
624+
if features.check_feature("libjpeg_turbo"):
625+
assert qtable_from_qtable_quality == qtable_from_quality
626+
else:
627+
assert qtable_from_qtable_quality[0] == qtable_from_quality[0]
628+
assert (
629+
qtable_from_qtable_quality[1][1:] == qtable_from_quality[1][1:]
630+
)
625631

626632
# list of qtable lists
627633
assert_image_similar(

0 commit comments

Comments
 (0)