#23464: Random exception when running unit tests.
------------------------------+--------------------
Reporter: erikcw | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------
After upgrading to Django 1.7, my test suite now randomly throws this
exception 80% of the time. Not sure why this would happen intermittently
like this.
{{{
======================================================================
ERROR: test_get_list_json (api.tests.test_user_drf.UserResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/erik/Dropbox/home/git/proj/api/tests/test_user_drf.py",
line 48, in test_get_list_json
resp = self.client.get('/api/drf/user/',
content_type="application/json",
HTTP_AUTHORIZATION=self.get_credentials())
File "/Users/erik/.virtualenvs/proj/src/django-
tastypie/tastypie/test.py", line 68, in get
return self.client.get(uri, **kwargs)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/test/client.py", line 467, in get
**extra)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/test/client.py", line 285, in get
return self.generic('GET', path, secure=secure, **r)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/test/client.py", line 355, in generic
return self.request(**r)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/test/client.py", line 419, in request
response = self.handler(environ)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/test/client.py", line 110, in __call__
response = self.get_response(request)
File "/Users/erik/.virtualenvs/proj/lib/python2.7/site-
packages/django/core/handlers/base.py", line 210, in get_response
response._closable_objects.append(request)
AttributeError: 'Response' object has no attribute '_closable_objects'
----------------------------------------------------------------------
Ran 1 test in 0.322s
FAILED (errors=1)
Destroying test database for alias 'default'...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23464>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.993f0b5b84fe1a5611f7de98eac46778%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.