mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Merge pull request #1584 from radarhere/instance
Changed assertTrue isinstance to assertIsInstance
This commit is contained in:
		
						commit
						cd220dccb4
					
				|  | @ -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() | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user