[Python-bugs-list] [ python-Bugs-706450 ] test_socket fails when not connected

SourceForge.net noreply@sourceforge.net
Wed, 19 Mar 2003 11:12:00 -0800


Bugs item #706450, was opened at 2003-03-19 19:12
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=706450&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Stone (mbrierst)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_socket fails when not connected

Initial Comment:

Should test_socket require the network resource
be enabled?  It only works for me when I'm
connected (Running an old slackware linux).
This is true of both CVS and 2.2 python

When not connected testHostnameRes fails because
getfqdn() returns my hostname, 'zazz', but
gethostbyaddr(ip) returns the hostname 'localhost'.
When I am connected getfqdn() also returns
'localhost' so there's no problem.  It could be
fixed for me by either requiring the network
resource or changing line 234 of test_socket from:
all_host_names = [hname] + aliases
to:
all_host_names = [hname, hostname] + aliases

Or maybe my machine's setup is just messed
up in which case I trust you'll close the bug.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=706450&group_id=5470