mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Improve assert_warning() error message for warn_class=None
This commit is contained in:
		
							parent
							
								
									77f0608c4e
								
							
						
					
					
						commit
						cde8c1b560
					
				|  | @ -122,7 +122,9 @@ class PillowTestCase(unittest.TestCase): | |||
| 
 | ||||
|             # Verify some things. | ||||
|             if warn_class is None: | ||||
|                 self.assertEqual(len(w), 0) | ||||
|                 self.assertEqual(len(w), 0, | ||||
|                                  "Expected no warnings, got %s" % | ||||
|                                  list(v.category for v in w)) | ||||
|             else: | ||||
|                 self.assertGreaterEqual(len(w), 1) | ||||
|                 found = False | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user