This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients
Date 2003-03-04.03:41:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=33168

I added the #ifdef, but that doesn't address the testing
problem.  If the platform has inet_pton, but doesn't have
IPv6 ENABLED.  The inet_pton will be exported, but there's
no good way to tell if you can pass an IPv6 address.  The
only way to test if IPv6 is enabled would be to call
inet_pton with AF_INET6, catch a socket.error and check if
the exception message is "unknown address family".  Since
this is really a testing issue, perhaps that's best after all?

Do you agree this should be done?
 * Remove has_ipv6
 * Export inet_pton & inet_ntop only if defined for platform
 * Only try to test inet_pton/ntop if defined for platform
 * Modify the tests to pass a valid IPv6 test, catch
socket.error, if the error message is "unknown address
family", don't test ipv6 any further, if the error message
is different, raise TestFailed, if no exception, test all
IPv6 addresses
History
Date User Action Args
2007-08-23 15:19:11adminlinkissue658327 messages
2007-08-23 15:19:11admincreate