test IFDRational equality

This commit is contained in:
luphord 2020-07-24 16:17:49 +02:00 committed by Andrew Murray
parent c6c1d7c11a
commit 26bd02cb04

View File

@ -49,6 +49,11 @@ def test_nonetype():
assert xres and yres 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): def test_ifd_rational_save(tmp_path):
methods = (True, False) methods = (True, False)
if not features.check("libtiff"): if not features.check("libtiff"):