diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-03 08:10:33 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-03 08:10:33 (GMT) |
commit | cf0a2a8576b4780263cfeb96d081eea06a1ebe92 (patch) | |
tree | c9ea8016a2e4ee1372be62b597bda1d21d35e272 /Lib | |
parent | 93f5b93422ddfc46142186078ee0eedfcace8964 (diff) | |
download | cpython-cf0a2a8576b4780263cfeb96d081eea06a1ebe92.zip cpython-cf0a2a8576b4780263cfeb96d081eea06a1ebe92.tar.gz cpython-cf0a2a8576b4780263cfeb96d081eea06a1ebe92.tar.bz2 |
Deal with openbsd's different style of default /etc/hosts by forcing the fqdn
lookup to use the IP address returned by gethosbyname.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index f9d8313..46468a6 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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))) |