Commit 76741443 by Xavier Ordoquy

Be nicer with __closable_objects.

parent f5e5ed00
...@@ -646,7 +646,8 @@ class CacheRenderTest(TestCase): ...@@ -646,7 +646,8 @@ class CacheRenderTest(TestCase):
""" """
method = getattr(self.client, http_method) method = getattr(self.client, http_method)
resp = method(url) resp = method(url)
del resp.client, resp.request, resp._closable_objects resp._closable_objects = []
del resp.client, resp.request
try: try:
del resp.wsgi_request del resp.wsgi_request
except AttributeError: except AttributeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment