django/tests/servers
Florian Apolloner 56201fe5a8 [1.6.x] Fixed "Address already in use" from liveserver.
Our WSGIServer rewrapped the socket errors from server_bind into
WSGIServerExceptions, which is used later on to provide nicer
error messages in runserver and used by the liveserver to see if
the port is already in use. But wrapping server_bind isn't enough since
it only binds to the socket, socket.listen (which is called from
server_activate) could also raise "Address already in use".

Instead of overriding server_activate too I chose to just catch socket
errors, which seems to make more sense anyways and should be more robust
against changes in wsgiref.

Backport of 2ca00faa91 from master.
2013-09-22 22:04:50 +02:00
..
fixtures Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
media Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
static Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
tests.py [1.6.x] Fixed "Address already in use" from liveserver. 2013-09-22 22:04:50 +02:00
urls.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
views.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00