[Python-checkins] python/dist/src/Lib/test test_socket.py, 1.77,
1.77.2.1
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Sat Mar 12 07:15:58 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21638/Lib/test
Modified Files:
Tag: release24-maint
test_socket.py
Log Message:
Fix test_socket's test for socket.getfqdn() to also accept the result from
socket.gethostname() as a valid return value.
Also clarified the docs as they were a little hazy on the subject matter.
Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.77
retrieving revision 1.77.2.1
diff -u -d -r1.77 -r1.77.2.1
--- test_socket.py 20 Nov 2004 21:10:07 -0000 1.77
+++ test_socket.py 12 Mar 2005 06:15:55 -0000 1.77.2.1
@@ -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