[Python-Dev] New test failure, test_socket, WinXP

Guido van Rossum guido at python.org
Tue Jul 6 05:40:32 CEST 2004


> Tim Peters wrote:
> 
> > Fails every time, in release and debug builds:
> > 
> > test test_socket failed -- Traceback (most recent call last):
> >   File "C:\Code\python\lib\test\test_socket.py", line 311, in testGetServBy
> >     eq(socket.getservbyport(port2), service)
> > AssertionError: 'http' != 'www'
> > 
> 
> Passes on OS X.
> 
> Does it pass if you change "www" to "http" on line 292?  Might fix it by 
>   being more correct on possible services.

Ouch.  The test looks wrong.  'www' is a bogus alias for 'http' (IMO).

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list