diff --git a/Tests/helper.py b/Tests/helper.py index 79d2d5b81..59dfaedd7 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -117,7 +117,9 @@ class PillowTestCase(unittest.TestCase): # Verify some things. if warn_class is None: - self.assertEqual(len(w), 0) + self.assertEqual(len(w), 0, + "Expected no warnings, got %s" % + list(v.category for v in w)) else: self.assertGreaterEqual(len(w), 1) found = False