[Python-checkins] python/dist/src/Lib/test test_socket.py, 1.77,
1.78
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Fri Mar 11 01:04:21 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16661/Lib/test
Modified Files:
test_socket.py
Log Message:
Fix test for socket.getfqdn() to also include the name returned by
socket.gethostname() in the check for a valid return.
Also clarified docs (official and docstring) that the value from gethostname()
is returned if gethostbyaddr() doesn't do the job.
Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- test_socket.py 20 Nov 2004 21:10:07 -0000 1.77
+++ test_socket.py 11 Mar 2005 00:04:17 -0000 1.78
@@ -267,7 +267,7 @@
except socket.error:
# Probably a similar problem as above; skip this test
return
- all_host_names = [hname] + aliases
+ all_host_names = [hostname, hname] + aliases
fqhn = socket.getfqdn()
if not fqhn in all_host_names:
self.fail("Error testing host resolution mechanisms.")
More information about the Python-checkins
mailing list