From e8553e1dae56a4e5acc19c9df348a55b5fdbe5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pedersen?= Date: Mon, 23 Feb 2015 12:06:29 +0100 Subject: [PATCH] Tiff float tags: Use first val in tuple --- 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 12689ba1c..4642780c2 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.assertAlmostEqual(loaded.tag[tag_ids['RollAngle']], floatdata) - self.assertAlmostEqual(loaded.tag[tag_ids['YawAngle']], doubledata) + self.assertAlmostEqual(loaded.tag[tag_ids['RollAngle']][0], floatdata) + self.assertAlmostEqual(loaded.tag[tag_ids['YawAngle']][0], doubledata) def test_read_metadata(self): img = Image.open('Tests/images/hopper_g4.tif')