mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Be nicer with __closable_objects.
This commit is contained in:
parent
f5e5ed0077
commit
767414439b
|
@ -646,7 +646,8 @@ class CacheRenderTest(TestCase):
|
|||
"""
|
||||
method = getattr(self.client, http_method)
|
||||
resp = method(url)
|
||||
del resp.client, resp.request, resp._closable_objects
|
||||
resp._closable_objects = []
|
||||
del resp.client, resp.request
|
||||
try:
|
||||
del resp.wsgi_request
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user