beno wrote:
> Avell Diroll wrote:
>> beno wrote:
>>  

*** tidying a little ***

>>>
>>> What do I do about the problems with mimetools and urllib2?
>>>     
>>
>> This is the last report of the 'make test' command and there should be
>> a few lines before that stating each test one by one and printing
>> problems has they appear, and sometime pointing at a possible source
>> for the specific problem. Have you got such a report for test_urllib2 ?
>>   
> Here it is for both:
> 
> test_mimetools
> test test_mimetools failed -- Traceback (most recent call last):
>  File "/usr/local/zope/py243/Lib/test/test_mimetools.py", line 30, in
> test_boundary
>    nb = mimetools.choose_boundary()
>  File "/usr/local/zope/py243/Lib/mimetools.py", line 130, in
> choose_boundary
>    hostid = socket.gethostbyname(socket.gethostname())
> gaierror: (8, 'hostname nor servname provided, or not known')
> 
> 
> test_urllib2
> test test_urllib2 failed -- Traceback (most recent call last):
>  File "/usr/local/zope/py243/Lib/test/test_urllib2.py", line 352, in
> test_file
>    for url in [
> gaierror: (8, 'hostname nor servname provided, or not known')
> 
> Looks like the same error ;) So, where am I supposed to provide this
> servname?
> 
>>  

*** tidying a little ***

This gethostname() problem in the test suite looks like an old problem.

I believe your problem is related to what Anthony Baxter and Guido van
Rossum where discussing back in 2004 on the python-dev mailing list :
http://mail.python.org/pipermail/python-dev/2003-November/040501.html

To put things short the test suite might fail on any test using
socket.gethostname() on a machine where /etc/hostname and /etc/hosts are
not matching.
If that is the case for your machine, the problem is coming from the
test suite, not your python build.

regards,

Avell
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to