mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 10:03:57 +03:00
wsgi_request is now added to the response so we have to remove it before pickling the response.
This commit is contained in:
parent
656117814c
commit
e4c25e0ff2
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user