Facundo Batista wrote:
> 2007/7/24, Nick Coghlan <[EMAIL PROTECTED]>:
>
> > some of the Debian buildbots happier, but several of the other buildbots
> > are reporting a variety of "Address already in use" errors in the
> > subthreads created by test_urllib2.
>
> Test pass ok in my machine.
>
> However, if in another terminal I make...
>
> >>> import socket
> >>> s = socket.socket()
> >>> s.bind(("127.0.0.1", 8080))
>
> ...the test fails exactly like in the buildbot.
>
> Maybe the tests should be changed to use a not-so-standard port.
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.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com