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: Closed >Resolution: Fixed Priority: 5 Submitted By: Michael Stone (mbrierst) >Assigned to: Brett Cannon (bcannon) 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: 2005-03-10 16:27 Message: Logged In: YES user_id=357491 This can either be considered invalid because of my previous comment explaining why the 'network' resource is not appropriate for test_socket, or it can be considered fix since I just coincidentally fixed test_socket in the exact same way Michael suggested. Either way it is now closed. ---------------------------------------------------------------------- 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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com