From 597257b94090c21010b9b4bf5a021eda683c3512 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 13 Jun 2002 16:54:38 +0000 Subject: Comment out testHostnameRes() -- it depends on a correctly working DNS, and we can't assume that. --- Lib/test/test_socket.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index a2db64a..de105ba 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.""" -- cgit v0.12