From 26bd02cb04b6ff85443f80898e76b68142d84619 Mon Sep 17 00:00:00 2001 From: luphord Date: Fri, 24 Jul 2020 16:17:49 +0200 Subject: [PATCH] test IFDRational equality --- Tests/test_tiff_ifdrational.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/test_tiff_ifdrational.py b/Tests/test_tiff_ifdrational.py index 1697a8d49..81db7d4de 100644 --- a/Tests/test_tiff_ifdrational.py +++ b/Tests/test_tiff_ifdrational.py @@ -49,6 +49,11 @@ def test_nonetype(): assert xres and yres +def test_nan(): + # usually NaN != NaN, but this would break exif self-equality + assert IFDRational(123, 0) == IFDRational(123, 0) + + def test_ifd_rational_save(tmp_path): methods = (True, False) if not features.check("libtiff"):