wsgi_request is now added to the response so we have to remove it before pickling the response.

This commit is contained in:
Xavier Ordoquy 2014-01-28 18:57:36 +01:00
parent 656117814c
commit e4c25e0ff2

View File

@ -601,6 +601,10 @@ 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 del resp.client, resp.request
try:
del resp.wsgi_request
except AttributeError:
pass
return resp return resp
def test_obj_pickling(self): def test_obj_pickling(self):