test_socket.py failure

Nick Coghlan ncoghlan at iinet.net.au
Mon Jan 31 07:08:07 EST 2005


x2164 at mailcity.com wrote:
>      hi all,
> 
>      Linux 2.4.28
>      Glibc 2.2.5
>      gcc   2.95.3
> 
> 
>      I'm new to Python.
> 
>      I've compiled Python 2.4 from tar file.
> 
>      When running 'make test' i'm getting a failure
>      in test_socket.
> 

Two questions. First, what does the following code give when you run it at the 
interactive prompt?:

Py> import socket
Py> socket.getservbyname('daytime')
13

Second, is there an entry for 'daytime' in /etc/services?

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list