Be nicer with __closable_objects.

This commit is contained in:
Xavier Ordoquy 2014-11-26 22:20:14 +01:00
parent f5e5ed0077
commit 767414439b

View File

@ -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: