From f86f11c84381c5ced4e6f59b222f661663e55387 Mon Sep 17 00:00:00 2001 From: Enric Pou Date: Fri, 30 May 2025 17:36:00 +0200 Subject: [PATCH] Update Tests/test_file_tiff_metadata.py Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- Tests/test_file_tiff_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_file_tiff_metadata.py b/Tests/test_file_tiff_metadata.py index 399736750..01f63a0a9 100644 --- a/Tests/test_file_tiff_metadata.py +++ b/Tests/test_file_tiff_metadata.py @@ -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