Nick Coghlan wrote:
> Andrew Bennetts wrote:
>> Or use port 0 to let the operating system pick a free port:
>>
>>     >>> import socket
>>     >>> s = socket.socket()
>>     >>> s.bind(("127.0.0.1", 0))
>>     >>> s.getsockname()
>>     ('127.0.0.1', 42669)
>>
>> -Andrew.
> 
> I've changed test_urllib2_localnet to work this way - we'll see if it 
> improves matters.

Yep, looks like that did the trick. Facundo, a similar change may help 
with the GSoC project you're mentoring (the new smtplib tests failed on 
at least one of the buildbots).

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to