diff --git a/Tests/test_image_getxmp.py b/Tests/test_image_getxmp.py index 2ca7f0fde..33c531931 100644 --- a/Tests/test_image_getxmp.py +++ b/Tests/test_image_getxmp.py @@ -3,7 +3,8 @@ from PIL import Image def test_getxmp(): with Image.open("Tests/images/xmp_test.jpg") as im: - type_repr = repr(type(im.getxmp())) + xmp = im.getxmp() + + assert isinstance(xmp, dict) + assert isinstance(xmp["Description"][0]["Version"], str) - assert "dict" in type_repr - assert isinstance(im.getxmp()["Description"][0]["Version"], str)