Pillow provides a more descriptive error message, therefor the build failure.

This commit is contained in:
Omer Katz 2014-06-25 10:58:00 +03:00
parent bb461b009f
commit 8e852bce02

View File

@ -279,7 +279,7 @@ class FileTest(unittest.TestCase):
t.image.put(f)
self.fail("Should have raised an invalidation error")
except ValidationError, e:
self.assertEqual("%s" % e, "Invalid image: cannot identify image file")
self.assertEqual("%s" % e, "Invalid image: cannot identify image file %s" % f)
t = TestImage()
t.image.put(open(TEST_IMAGE_PATH, 'rb'))