diff options
author | Guido van Rossum <guido@python.org> | 2002-06-13 16:54:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-13 16:54:38 (GMT) |
commit | 597257b94090c21010b9b4bf5a021eda683c3512 (patch) | |
tree | bf7a769779701a3a8606455e6b333f16c27ecb7d /Lib/test/test_socket.py | |
parent | 7b8bac106aaddc6d9d438309f06cd3a51e701753 (diff) | |
download | cpython-597257b94090c21010b9b4bf5a021eda683c3512.zip cpython-597257b94090c21010b9b4bf5a021eda683c3512.tar.gz cpython-597257b94090c21010b9b4bf5a021eda683c3512.tar.bz2 |
Comment out testHostnameRes() -- it depends on a correctly working
DNS, and we can't assume that.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 20 |
1 files 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.""" |