STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Some tests of test_ftplib and test_telnetlib use HOST or directly 'localhost' 
instead of getting the host from the server socket. About the test_ftplib 
failures, only the tests using explicitly 'localhost' do fail.

Attached patch reads the name of the server socket instead of using HOST or 
'localhost'.

You would like to try it on Linux by changing support.bind_port() function: 
replace the default host value from HOST to '127.0.0.2'. If you do that, 
test_ftplib and test_telnetlib fail without my patch, and pass with my patch.

By the way, why do we use 'localhost' instead of '127.0.0.1' for support.HOST? 
'127.0.0.1' doesn't depend on the DNS configuration of the host (especially its 
"hosts" file, even Windows has such file).

----------
keywords: +patch
Added file: http://bugs.python.org/file22432/tests_host.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11812>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to