﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23464	Random exception when running unit tests.	ErikW	nobody	"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'...

}}}"	Bug	closed	Core (Other)	1.7	Normal	invalid			Unreviewed	0	0	0	0	0	0
