mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Reverted 6a64822bf4.
This commit caused every test that does two or more assertContains to fail, because of #6527. It also made HttpResponse non-pickleable. Refs #13222.
This commit is contained in:
@@ -330,13 +330,6 @@ class HttpResponseTests(unittest.TestCase):
|
||||
self.assertRaises(UnicodeEncodeError,
|
||||
getattr, r, 'content')
|
||||
|
||||
def test_iterator_isnt_rewound(self):
|
||||
# Regression test for #13222
|
||||
r = HttpResponse('abc')
|
||||
i = iter(r)
|
||||
self.assertEqual(list(i), [b'abc'])
|
||||
self.assertEqual(list(i), [])
|
||||
|
||||
def test_file_interface(self):
|
||||
r = HttpResponse()
|
||||
r.write(b"hello")
|
||||
|
||||
Reference in New Issue
Block a user