Update Tests/test_file_tiff_metadata.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Enric Pou 2025-05-30 17:36:00 +02:00 committed by GitHub
parent ee26eb8608
commit f86f11c843
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,7 +304,7 @@ def test_tagtype_on_zero_denominator(
assert isinstance(reloaded, TiffImagePlugin.TiffImageFile)
if expected == TiffTags.RATIONAL:
assert reloaded.tag_v2[37380] == math.inf
elif TiffTags.SIGNED_RATIONAL:
elif expected == TiffTags.SIGNED_RATIONAL:
assert reloaded.tag_v2[37380] == -math.inf