1
0
mirror of https://github.com/django/django.git synced 2024-11-20 08:24:58 +00:00
django/tests/servers
Florian Apolloner 2ca00faa91 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.
2013-09-22 22:02:59 +02:00
..
another_app Expand testing of Test LiveServerTestCase static files serving. 2013-08-10 16:32:07 -03:00
fixtures
media
static
__init__.py
models.py
tests.py Fixed "Address already in use" from liveserver. 2013-09-22 22:02:59 +02:00
urls.py Removed most of absolute_import imports 2013-07-29 20:28:13 +02:00
views.py Fixed #20989 -- Removed useless explicit list comprehensions. 2013-08-30 10:57:51 -04:00