Author r.david.murray
Recipients ezio.melotti, hakan, larstiq, puppet, r.david.murray
Date 2014-11-01.18:15:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The problem is that there are several places in the test suite (and the stdlib itself!) that assume that is a valid loopback address.  This is the de-facto Internet standard, and while I know not all systems make a valid loopback and/or do not map localhost to it, I'm not sure this is something it is practical for the stdlib or the test suite to compensate for.  (I had this problem with linux-vserver on my buildbots, see issue 3972).  It is true that the test suite in in a couple places assumes that 'localhost' maps to, which is an assumption that breaks more often than that of 127.0.0.;1 being a a valid loopback, since it depends on the "correct" configuration of the local host.

We've got a catch 22: if we assume localhost maps to a valid loopback address, the tests will fail on systems that are not configured correctly, while if we assume that is a valid loopback address but may not be 'localhost', the tests will fail on systems for which is not a valid loopback.  Since the stdlib itself assumes that is valid, the former wins.  (As far as I know we don't have any open issues against the stdlib for this assumption.  If it is problematic on your system, then you should open a separate issue about that so we can consider it.)

If this test fails on your system because is not a loopback address, I would expect many other tests to fail as well (ex: test_ssl).  If they do not, then I suspect your real problem is that localhost doesn't map to even though is a valid loopback address.  So, it looks to me like the better "fix" here would be to change 'URL' to be ''.  Can you confirm if that works for you, please?
Date User Action Args
2014-11-01 18:15:41r.david.murraysetrecipients: + r.david.murray, ezio.melotti, puppet, larstiq, hakan
2014-11-01 18:15:41r.david.murraysetmessageid: <>
2014-11-01 18:15:41r.david.murraylinkissue22753 messages
2014-11-01 18:15:40r.david.murraycreate