From ee82f7089c8932a961b575a45c5091f3dd3c0edf Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 8 Dec 2015 20:31:02 +1100 Subject: [PATCH] Changed assertTrue isinstance to assertIsInstance --- Tests/test_image_tobytes.py | 2 +- Tests/test_image_toqimage.py | 2 +- Tests/test_image_toqpixmap.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/test_image_tobytes.py b/Tests/test_image_tobytes.py index 31a7e1722..a15bc002d 100644 --- a/Tests/test_image_tobytes.py +++ b/Tests/test_image_tobytes.py @@ -5,7 +5,7 @@ class TestImageToBytes(PillowTestCase): def test_sanity(self): data = hopper().tobytes() - self.assertTrue(isinstance(data, bytes)) + self.assertIsInstance(data, bytes) if __name__ == '__main__': unittest.main() diff --git a/Tests/test_image_toqimage.py b/Tests/test_image_toqimage.py index 6c79b4c6d..76169258c 100644 --- a/Tests/test_image_toqimage.py +++ b/Tests/test_image_toqimage.py @@ -15,7 +15,7 @@ class TestToQImage(PillowQtTestCase, PillowTestCase): for mode in ('1', 'RGB', 'RGBA', 'L', 'P'): data = ImageQt.toqimage(hopper(mode)) - self.assertTrue(isinstance(data, QImage)) + self.assertIsInstance(data, QImage) self.assertFalse(data.isNull()) # Test saving the file diff --git a/Tests/test_image_toqpixmap.py b/Tests/test_image_toqpixmap.py index 8fabab13d..eb9f2f7c4 100644 --- a/Tests/test_image_toqpixmap.py +++ b/Tests/test_image_toqpixmap.py @@ -15,7 +15,7 @@ class TestToQPixmap(PillowQPixmapTestCase, PillowTestCase): for mode in ('1', 'RGB', 'RGBA', 'L', 'P'): data = ImageQt.toqpixmap(hopper(mode)) - self.assertTrue(isinstance(data, QPixmap)) + self.assertIsInstance(data, QPixmap) self.assertFalse(data.isNull()) # Test saving the file