[issue28728] test_host_resolution in test_socket fails

Xiang Zhang report at bugs.python.org
Thu Dec 1 02:21:23 EST 2016


Xiang Zhang added the comment:

Ohh, sorry.

> I was wondering if there was a separate way to detect the troublesome ISP environment.

How could you differentiate the failure between ISP environment caused and function behaved wrongly? Successfully resolve an invalid ip address doesn't mean you can successfully resolve a bogus domain.

I think this case should be rare. Maybe we can just fail the test and warn the user this failure is not 100% caused by function's misbehaviour, just like test_bad_address.

----------
Added file: http://bugs.python.org/file45716/test_host_resolution-v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28728>
_______________________________________


More information about the Python-bugs-list mailing list