]> granicus.if.org Git - python/commitdiff
Improve the error message for a test that failed on the S-390 Debian buildbot.
authorBrett Cannon <bcannon@gmail.com>
Tue, 18 Mar 2008 05:43:04 +0000 (05:43 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 18 Mar 2008 05:43:04 +0000 (05:43 +0000)
Lib/test/test_errno.py

index 3f4496563e3f13159f4f5670c871270b1f3e85fc..e42c86d59b6940a0db1f8171c1cb4dcc451ea4ec 100755 (executable)
@@ -42,7 +42,8 @@ class ErrnoAttributeTests(unittest.TestCase):
         errors_set = set(errors)
         for attribute in errno.__dict__.iterkeys():
             if attribute.isupper():
-                self.assert_(attribute in errors_set)
+                self.assert_(attribute in errors_set,
+                                "%s is an unexpected error value" % attribute)
 
     def test_using_errorcode(self):
         # Every key value in errno.errorcode should be on the module.