mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Added test for unknown filter in Image resize
This commit is contained in:
		
							parent
							
								
									01cb6590a4
								
							
						
					
					
						commit
						2039d43d85
					
				| 
						 | 
					@ -97,6 +97,9 @@ class TestImagingCoreResize(PillowTestCase):
 | 
				
			||||||
            self.assertEqual(r.size, (212, 195))
 | 
					            self.assertEqual(r.size, (212, 195))
 | 
				
			||||||
            self.assertEqual(r.getdata()[0], (0,0,0))
 | 
					            self.assertEqual(r.getdata()[0], (0,0,0))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_unknown_filter(self):
 | 
				
			||||||
 | 
					        self.assertRaises(ValueError, self.resize, hopper(), (10, 10), 9)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TestImageResize(PillowTestCase):
 | 
					class TestImageResize(PillowTestCase):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user