mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	text is a property
This commit is contained in:
		
							parent
							
								
									aa0f4127b8
								
							
						
					
					
						commit
						d626e6ab9f
					
				| 
						 | 
					@ -618,7 +618,7 @@ class TestFilePng:
 | 
				
			||||||
        with Image.open("Tests/images/truncated_image.png") as im:
 | 
					        with Image.open("Tests/images/truncated_image.png") as im:
 | 
				
			||||||
            # The file is truncated
 | 
					            # The file is truncated
 | 
				
			||||||
            with pytest.raises(OSError):
 | 
					            with pytest.raises(OSError):
 | 
				
			||||||
                im.text()
 | 
					                im.text
 | 
				
			||||||
            ImageFile.LOAD_TRUNCATED_IMAGES = True
 | 
					            ImageFile.LOAD_TRUNCATED_IMAGES = True
 | 
				
			||||||
            assert isinstance(im.text, dict)
 | 
					            assert isinstance(im.text, dict)
 | 
				
			||||||
            ImageFile.LOAD_TRUNCATED_IMAGES = False
 | 
					            ImageFile.LOAD_TRUNCATED_IMAGES = False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user