Ticket #14753: 14753.diff
File 14753.diff, 539 bytes (added by , 14 years ago) |
---|
-
django/test/client.py
diff --git a/django/test/client.py b/django/test/client.py index 203828a..24fe627 100644
a b class FakePayload(object): 46 46 47 47 def read(self, num_bytes=None): 48 48 if num_bytes is None: 49 num_bytes = self.__len or 149 num_bytes = self.__len or 0 50 50 assert self.__len >= num_bytes, "Cannot read more than the available bytes from the HTTP incoming data." 51 51 content = self.__content.read(num_bytes) 52 52 self.__len -= num_bytes