From afa4166a570e4f12cd6cc87794c2985cbc02e054 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 16 Dec 2015 14:30:17 +1100 Subject: [PATCH] Updated deprecated asserts --- Tests/test_file_tiff.py | 8 ++++---- Tests/test_file_tiff_metadata.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index 776718420..312daea56 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -81,12 +81,12 @@ class TestFileTiff(PillowTestCase): im = Image.open(filename) # legacy api - self.assert_(isinstance(im.tag[X_RESOLUTION][0], tuple)) - self.assert_(isinstance(im.tag[Y_RESOLUTION][0], tuple)) + self.assertIsInstance(im.tag[X_RESOLUTION][0], tuple) + self.assertIsInstance(im.tag[Y_RESOLUTION][0], tuple) # v2 api - self.assert_(isinstance(im.tag_v2[X_RESOLUTION], float)) - self.assert_(isinstance(im.tag_v2[Y_RESOLUTION], float)) + self.assertIsInstance(im.tag_v2[X_RESOLUTION], float) + self.assertIsInstance(im.tag_v2[Y_RESOLUTION], float) self.assertEqual(im.info['dpi'], (72., 72.)) diff --git a/Tests/test_file_tiff_metadata.py b/Tests/test_file_tiff_metadata.py index 620fc03ba..b0f4e402a 100644 --- a/Tests/test_file_tiff_metadata.py +++ b/Tests/test_file_tiff_metadata.py @@ -163,7 +163,7 @@ class TestFileTiffMetadata(PillowTestCase): im = Image.open('Tests/images/hopper.iccprofile_binary.tif') self.assertEqual(im.tag_v2.tagtype[34675], 1) - self.assert_(im.info['icc_profile']) + self.assertTrue(im.info['icc_profile']) if __name__ == '__main__':