Tests brake after each 2nd run

Bug #921736 reported by benste on 2012-01-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DEFUNCT: Mailman 3 Web UI
Florian Fuchs

Bug Description


python manage.py test

the first run is fine - all following attempt will fail - i assume our testing mailman instance is somehow shut down.

File "/home/benste/Projects/Mailman/mailmanweb/src/mailman_django/tests/__init__.py", line 250, in mailman_django.tests.__test__.Doctest
Failed example:
    response = c.get(url)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/django/test/_doctest.py", line 1267, in __run
        compileflags, 1) in test.globs
      File "<doctest mailman_django.tests.__test__.Doctest[47]>", line 1, in <module>
        response = c.get(url)
      File "/usr/local/lib/python2.7/dist-packages/django/test/client.py", line 445, in get
        response = super(Client, self).get(path, data=data, **extra)
      File "/usr/local/lib/python2.7/dist-packages/django/test/client.py", line 229, in get
        return self.request(**r)
      File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
        response = callback(request, *callback_args, **callback_kwargs)
      File "/home/benste/Projects/Mailman/mailmanweb/src/mailman_django/views.py", line 235, in list_subscriptions
        the_list = c.get_list(fqdn_listname)
      File "/home/benste/Projects/Mailman/mailman.client/mailman/client/_client.py", line 219, in get_list
      File "/home/benste/Projects/Mailman/mailman.client/mailman/client/_client.py", line 107, in call
        response, content = Http().request(url, method, data, headers)
      File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1436, in request
        (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
      File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1188, in _request
        (response, content) = self._conn_request(conn, request_uri, method, body, headers)
      File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1123, in _conn_request
      File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 796, in connect
        raise socket.error, msg
    error: [Errno 111] Connection refused

Related branches

Changed in mailmanweb:
assignee: nobody → Florian Fuchs (flo-fuchs)
status: New → In Progress
Florian Fuchs (flo-fuchs) wrote :

Test setup config still uses [qrunner.*] section names (new: [runner.*]

Changed in mailmanweb:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers