A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-July/074000.html below:

[Python-Dev] Failure on assorted buildbots

[Python-Dev] Failure on assorted buildbots - Address already in use [Python-Dev] Failure on assorted buildbots - Address already in useAndrew Bennetts andrew-pythondev at puzzling.org
Wed Jul 25 06:24:04 CEST 2007
Facundo Batista wrote:
> 2007/7/24, Nick Coghlan <ncoghlan at gmail.com>:
> 
> > 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.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4