Improve the error message for a test that failed on the S-390 Debian buildbot.
This commit is contained in:
parent
819f139c4b
commit
08811dde5d
|
@ -42,7 +42,8 @@ class ErrnoAttributeTests(unittest.TestCase):
|
||||||
errors_set = set(errors)
|
errors_set = set(errors)
|
||||||
for attribute in errno.__dict__.iterkeys():
|
for attribute in errno.__dict__.iterkeys():
|
||||||
if attribute.isupper():
|
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):
|
def test_using_errorcode(self):
|
||||||
# Every key value in errno.errorcode should be on the module.
|
# Every key value in errno.errorcode should be on the module.
|
||||||
|
|
Loading…
Reference in New Issue