Kaydet (Commit) cf0a2a85 authored tarafından Anthony Baxter's avatar Anthony Baxter

Deal with openbsd's different style of default /etc/hosts by forcing the fqdn

lookup to use the IP address returned by gethosbyname.
üst 93f5b934
......@@ -268,7 +268,7 @@ class GeneralModuleTests(unittest.TestCase):
# Probably a similar problem as above; skip this test
return
all_host_names = [hostname, hname] + aliases
fqhn = socket.getfqdn()
fqhn = socket.getfqdn(ip)
if not fqhn in all_host_names:
self.fail("Error testing host resolution mechanisms. (fqdn: %s, all: %s)" % (fqhn, repr(all_host_names)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment