diff --git a/Tests/test_file_webp_metadata.py b/Tests/test_file_webp_metadata.py index 0360ec67e..f773b802f 100644 --- a/Tests/test_file_webp_metadata.py +++ b/Tests/test_file_webp_metadata.py @@ -108,9 +108,9 @@ class TestFileWebpMetadata(PillowTestCase): self.assertFalse(webp_image._getexif()) def test_write_animated_metadata(self): - iccp_data = "" - exif_data = "" - xmp_data = "" + iccp_data = ''.encode('utf-8') + exif_data = ''.encode('utf-8') + xmp_data = ''.encode('utf-8') temp_file = self.tempfile("temp.webp") frame1 = Image.open('Tests/images/anim_frame1.webp')