diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 5f83612fe5..de2a3eb61d 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -575,6 +575,8 @@ class SimpleTestCase(unittest.TestCase): if response.streaming: content = b"".join(response.streaming_content) + # Reset the content so it can be checked again (idempotency). + response.streaming_content = [content] else: content = response.content response_content = content |
