mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Add test
This commit is contained in:
		
							parent
							
								
									e763c2281f
								
							
						
					
					
						commit
						a6874f01ac
					
				|  | @ -95,6 +95,11 @@ class TestImageFile(PillowTestCase): | ||||||
|     def test_raise_ioerror(self): |     def test_raise_ioerror(self): | ||||||
|         self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1)) |         self.assertRaises(IOError, lambda: ImageFile.raise_ioerror(1)) | ||||||
| 
 | 
 | ||||||
|  |     def test_raise_typeerror(self): | ||||||
|  |         with self.assertRaises(TypeError): | ||||||
|  |             parser = ImageFile.Parser() | ||||||
|  |             parser.feed(1) | ||||||
|  | 
 | ||||||
|     def test_truncated_with_errors(self): |     def test_truncated_with_errors(self): | ||||||
|         if "zip_encoder" not in codecs: |         if "zip_encoder" not in codecs: | ||||||
|             self.skipTest("PNG (zlib) encoder not available") |             self.skipTest("PNG (zlib) encoder not available") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user