David Winterbottom  committed 7471d02

Add support for Django 1.5's streaming response

Well, by "add support" I mean provide a 'streaming' attribute to the
response class that allows Django's testrunner to not choke when
processing the response. Without this, you get an AttributeError from here:

I think the right fix is in django-webtest rather than in Django itself.

The commit ID in tox.ini for Django 1.5 was 4 months out of date. When
I bumped it to today's latest commit, the tests started failing (hence I
didn't need to write a new failing test).

  • Participants
  • Parent commits 769cb02

Comments (0)

Files changed (2)

File django_webtest/

 from django.test import Client
 from django.http import SimpleCookie
 class DjangoWebtestResponse(TestResponse):
     WebOb's Response quacking more like django's HttpResponse.
     This is here to make more django's TestCase asserts work,
     not to provide a generally useful proxy.
+    streaming = False
     def status_code(self):
         return self.status_int
-    git+
+    git+