mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Replaced true assert with comment
This commit is contained in:
		
							parent
							
								
									e8cba27bb1
								
							
						
					
					
						commit
						b8e0daaf70
					
				| 
						 | 
					@ -16,8 +16,8 @@ class TestImagingResampleVulnerability(PillowTestCase):
 | 
				
			||||||
    def test_invalid_size(self):
 | 
					    def test_invalid_size(self):
 | 
				
			||||||
        im = hopper()
 | 
					        im = hopper()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Should not crash
 | 
				
			||||||
        im.resize((100, 100))
 | 
					        im.resize((100, 100))
 | 
				
			||||||
        self.assertTrue(True, "Should not Crash")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        with self.assertRaises(ValueError):
 | 
					        with self.assertRaises(ValueError):
 | 
				
			||||||
            im.resize((-100, 100))
 | 
					            im.resize((-100, 100))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user