From 0238a80e249ac0786f9933b78180311825daa973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pedersen?= Date: Mon, 23 Feb 2015 11:19:32 +0100 Subject: [PATCH] Fix test failure on float due to rounding, the values are just 'almost' equal. --- Tests/test_file_tiff_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_tiff_metadata.py b/Tests/test_file_tiff_metadata.py index eb596f658..12689ba1c 100644 --- a/Tests/test_file_tiff_metadata.py +++ b/Tests/test_file_tiff_metadata.py @@ -37,8 +37,8 @@ class TestFileTiffMetadata(PillowTestCase): self.assertEqual(loaded.tag[50838], (len(textdata),)) self.assertEqual(loaded.tag[50839], textdata) - self.assertEqual(loaded.tag[tag_ids['RollAngle']], floatdata) - self.assertEqual(loaded.tag[tag_ids['YawAngle']], doubledata) + self.assertAlmostEqual(loaded.tag[tag_ids['RollAngle']], floatdata) + self.assertAlmostEqual(loaded.tag[tag_ids['YawAngle']], doubledata) def test_read_metadata(self): img = Image.open('Tests/images/hopper_g4.tif')