HTTPRequest::raw_post_data broken for tests
HTTPRequest::raw_post_data method does not work for the test suite any more. It seems that the exception is caused due to the changes in django.http (
__init__.py) during processing of a multipart request. Previously it assigned
self._raw_post_data, and not it does not. The following change fixes the problem, but I don't know if it's exactly what you'd want to do:
--- django/http/__init__.py (revision 16821)
+++ django/http/__init__.py (working copy)
@@ -272,6 +272,7 @@
# Use already read data
data = StringIO(self._raw_post_data)
+ self._raw_post_data = ''
data = self
self._post, self._files = self.parse_file_upload(self.META, data)
I would have assigned this to version 1.3.1, but there is no choice for that.
Change History (7)
|Patch needs improvement:
Testing framework →