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."""