[Python-Dev] test_socket.py failing

Barry A. Warsaw barry@zope.com
Fri, 9 Nov 2001 16:13:03 -0500


>>>>> "MvL" == Martin v Loewis <martin@v.loewis.de> writes:

    >> This patch "fixes" the test, but I'm not sure it's right.

    MvL> It is surprising that the code got that far. Do you have a
    MvL> computer named "x" in your environment? If yes, your patch is
    MvL> right.

I believe the answer is a qualified "yes" because of the funky
wildcarding going on in my ISP's nameserver:

>>> socket.gethostbyname('x')
'66.92.162.103'

    MvL> If you have the time to investigate, I'd be curious to find
    MvL> out why getaddrinfo doesn't give an error. If you don't have
    MvL> the time, just commit the patch.

Thanks, I committed the patch.

-Barry