[Python-checkins] r43579 - python/trunk/Lib/test/test_socket.py

anthony.baxter python-checkins at python.org
Mon Apr 3 10:10:34 CEST 2006


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)))
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /