mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		
							parent
							
								
									658b60e3a3
								
							
						
					
					
						commit
						a3e3639a59
					
				|  | @ -164,7 +164,8 @@ class TestFileWebp: | |||
|         with pytest.raises(ValueError) as e: | ||||
|             im.save(temp_file) | ||||
|         assert ( | ||||
|             str(e.value) == "encoding error 5: Image size exceeds WebP limit of 16383 pixels" | ||||
|             str(e.value) | ||||
|             == "encoding error 5: Image size exceeds WebP limit of 16383 pixels" | ||||
|         ) | ||||
| 
 | ||||
|     def test_WebPEncode_with_invalid_args(self) -> None: | ||||
|  |  | |||
|  | @ -676,7 +676,9 @@ WebPEncode_wrapper(PyObject *self, PyObject *args) { | |||
|         char message[50] = ""; | ||||
|         if (error_code == VP8_ENC_ERROR_BAD_DIMENSION) { | ||||
|             sprintf( | ||||
|                 message, ": Image size exceeds WebP limit of %d pixels", WEBP_MAX_DIMENSION | ||||
|                 message, | ||||
|                 ": Image size exceeds WebP limit of %d pixels", | ||||
|                 WEBP_MAX_DIMENSION | ||||
|             ); | ||||
|         } | ||||
|         PyErr_Format(PyExc_ValueError, "encoding error %d%s", error_code, message); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user