]> granicus.if.org Git - python/commitdiff
Provide more debug output, to diagnose OpenBSD test failures.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 26 Mar 2006 09:50:11 +0000 (09:50 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 26 Mar 2006 09:50:11 +0000 (09:50 +0000)
Lib/test/test_socket.py

index 592e897532bcb775f27afd5751004d3a29f431e5..7246c51ec3a1aa480325eb264ee3a9b9e9d2a88a 100644 (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