From: Guido van Rossum Date: Thu, 13 Jun 2002 16:54:38 +0000 (+0000) Subject: Comment out testHostnameRes() -- it depends on a correctly working X-Git-Tag: v2.3c1~5346 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=597257b94090c21010b9b4bf5a021eda683c3512;p=thirdparty%2FPython%2Fcpython.git Comment out testHostnameRes() -- it depends on a correctly working DNS, and we can't assume that. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index a2db64a5c875..de105ba6f56b 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -207,16 +207,16 @@ class GeneralModuleTests(unittest.TestCase): except AttributeError: pass - def testHostnameRes(self): - """Testing hostname resolution mechanisms.""" - hostname = socket.gethostname() - ip = socket.gethostbyname(hostname) - self.assert_(ip.find('.') >= 0, "Error resolving host to ip.") - hname, aliases, ipaddrs = socket.gethostbyaddr(ip) - all_host_names = [hname] + aliases - fqhn = socket.getfqdn() - if not fqhn in all_host_names: - self.fail("Error testing host resolution mechanisms.") +## def testHostnameRes(self): +## """Testing hostname resolution mechanisms.""" +## hostname = socket.gethostname() +## ip = socket.gethostbyname(hostname) +## self.assert_(ip.find('.') >= 0, "Error resolving host to ip.") +## hname, aliases, ipaddrs = socket.gethostbyaddr(ip) +## all_host_names = [hname] + aliases +## fqhn = socket.getfqdn() +## if not fqhn in all_host_names: +## self.fail("Error testing host resolution mechanisms.") def testRefCountGetNameInfo(self): """Testing reference count for getnameinfo."""