[issue8857] socket.getaddrinfo needs tests

Ronald Oussoren report at bugs.python.org
Mon Aug 16 07:44:32 CEST 2010


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

There is one thing I don't understand about these tests: they basicly only seem to test if the function implements the right interface (argument counts and the structure of the return value).

Shouldn't the tests also test if the behaviour is somewhat sane? One example of this: test the 'family' flag by looking for www.google.com with both AF_INET and AF_INET6 and then check that the first returns IPv4 information and the second IPv6.

----------

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


More information about the Python-bugs-list mailing list