[Python-bugs-list] [ python-Bugs-706450 ] test_socket fails when not connected
SourceForge.net
noreply@sourceforge.net
Sun, 08 Jun 2003 15:38:14 -0700
Bugs item #706450, was opened at 2003-03-19 11:12
Message generated for change (Comment added) made by bcannon
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.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2003-06-08 15:38
Message:
Logged In: YES
user_id=357491
The purpose of the network resource if for when you need to
connect to the Internet, not to use sockets so the test is correct
in that regard.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=706450&group_id=5470