[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-11-03 Thread Håkan Lövdahl
Håkan Lövdahl added the comment: Yes, I can confirm that changing 'URL' to be 'http://127.0.0.1' works. I think that would be a solution to this. -- ___ Python tracker ___ _

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-11-01 Thread R. David Murray
R. David Murray added the comment: The problem is that there are several places in the test suite (and the stdlib itself!) that assume that 127.0.0.1 is a valid loopback address. This is the de-facto Internet standard, and while I know not all systems make 127.0.0.1 a valid loopback and/or do

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-11-01 Thread Wouter van Heyst
Wouter van Heyst added the comment: What the patch does is replace the hard-coded address 127.0.0.1 for the loopback interface with a one-time lookup. I'd argue the hunk @@ -315,7 +316,7 @@ should be dropped. The two arguments that motivate this change are: 1) The address of the loopback i

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread R. David Murray
R. David Murray added the comment: Your description of the solution ("change localhost to 127.0.0.1") does not match the content of the patch. The patch appears to be looking up the IP address associated with 'localhost' and using that. On most systems that would be 127.0.0.1, but perhaps on

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
Håkan Lövdahl added the comment: Ubuntu Linux 12.04 64bit -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
Changes by Håkan Lövdahl : -- keywords: +patch Added file: http://bugs.python.org/file37053/issue_22753.diff ___ Python tracker ___ __

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, larstiq stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Daniel Eriksson
Changes by Daniel Eriksson : -- nosy: +puppet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
New submission from Håkan Lövdahl: Running this test gave me an error: ./python -m test -v test_urllib2_localnet == ERROR: test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests) --