Fix metadata test for python3

This commit is contained in:
Jason Douglas 2017-09-26 20:46:35 -07:00
parent cd12a48fe0
commit 356da80686

View File

@ -108,9 +108,9 @@ class TestFileWebpMetadata(PillowTestCase):
self.assertFalse(webp_image._getexif()) self.assertFalse(webp_image._getexif())
def test_write_animated_metadata(self): def test_write_animated_metadata(self):
iccp_data = "<iccp_data>" iccp_data = '<iccp_data>'.encode('utf-8')
exif_data = "<exif_data>" exif_data = '<exif_data>'.encode('utf-8')
xmp_data = "<xmp_data>" xmp_data = '<xmp_data>'.encode('utf-8')
temp_file = self.tempfile("temp.webp") temp_file = self.tempfile("temp.webp")
frame1 = Image.open('Tests/images/anim_frame1.webp') frame1 = Image.open('Tests/images/anim_frame1.webp')