Skip to content
Snippets Groups Projects

Add support for Python 3.12

Merged Eva Bardou requested to merge support-py312 into main
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -36,7 +36,7 @@ def _compare_gifs(reference: Path, hypothesis: Path) -> bool:
zip(ImageSequence.Iterator(im1), ImageSequence.Iterator(im2))
):
# True if there is a difference, False if they are identical
has_diff = ImageChops.difference(ref_frame, hyp_frame).getbbox()
has_diff = np.asarray(ImageChops.difference(ref_frame, hyp_frame).getbbox()).mean() > 0.05
if has_diff:
print(idx, np.asarray(ImageChops.difference(ref_frame, hyp_frame)).mean())
identical &= not has_diff
Loading