Provide more debug output, to diagnose OpenBSD test failures.

This commit is contained in:
Martin v. Löwis 2006-03-26 09:50:11 +00:00
parent 04904faac5
commit c667d052e5

View file

@ -270,7 +270,7 @@ class GeneralModuleTests(unittest.TestCase):
all_host_names = [hostname, hname] + aliases
fqhn = socket.getfqdn()
if not fqhn in all_host_names:
self.fail("Error testing host resolution mechanisms.")
self.fail("Error testing host resolution mechanisms. (fqdn: %s, all: %s)" % (fqdn, repr(all_host_names)))
def testRefCountGetNameInfo(self):
# Testing reference count for getnameinfo