From: Martin v. Löwis Date: Sun, 26 Mar 2006 09:50:11 +0000 (+0000) Subject: Provide more debug output, to diagnose OpenBSD test failures. X-Git-Tag: v2.5a0~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c667d052e5c10ef519c61fd9c2e2713cc99297a9;p=python Provide more debug output, to diagnose OpenBSD test failures. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 592e897532..7246c51ec3 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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