[Python-checkins] r43579 - python/trunk/Lib/test/test_socket.py (original) (raw)
anthony.baxter python-checkins at python.org
Mon Apr 3 10:10:34 CEST 2006
- Previous message: [Python-checkins] r43578 - in python/trunk: Lib/email/_parseaddr.py Lib/email/test/test_email.py Lib/email/test/test_email_renamed.py Misc/ACKS Misc/NEWS
- Next message: [Python-checkins] r43580 - peps/trunk/pep-0356.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: anthony.baxter Date: Mon Apr 3 10:10:33 2006 New Revision: 43579
Modified: python/trunk/Lib/test/test_socket.py Log: Deal with openbsd's different style of default /etc/hosts by forcing the fqdn lookup to use the IP address returned by gethosbyname.
Modified: python/trunk/Lib/test/test_socket.py
--- python/trunk/Lib/test/test_socket.py (original) +++ python/trunk/Lib/test/test_socket.py Mon Apr 3 10:10:33 2006 @@ -268,7 +268,7 @@ # 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)))
- Previous message: [Python-checkins] r43578 - in python/trunk: Lib/email/_parseaddr.py Lib/email/test/test_email.py Lib/email/test/test_email_renamed.py Misc/ACKS Misc/NEWS
- Next message: [Python-checkins] r43580 - peps/trunk/pep-0356.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]