Also fix a bug in the test for python 2.5 on systems where ipv6 is not configured (socket.gaierror didn't have an `errno` attribute until 2.6)